this just wraps ALL the code in total catch block
| 208 | |
| 209 | // this just wraps ALL the code in total catch block |
| 210 | int Kernel::run(const StringList& cmdArgs, LogPtr& log) |
| 211 | { |
| 212 | m_log = log; |
| 213 | m_manager.setLog(m_log); |
| 214 | |
| 215 | ProgramArgs args; |
| 216 | |
| 217 | try |
| 218 | { |
| 219 | if (!doSwitches(cmdArgs, args)) |
| 220 | { |
| 221 | outputHelp(); |
| 222 | return 0; |
| 223 | } |
| 224 | } |
| 225 | catch (const pdal_error& e) |
| 226 | { |
| 227 | Utils::printError(e.what()); |
| 228 | return 1; |
| 229 | } |
| 230 | |
| 231 | int startup_status = doStartup(); |
| 232 | if (startup_status) |
| 233 | return startup_status; |
| 234 | |
| 235 | return doExecution(args); |
| 236 | } |
| 237 | |
| 238 | |
| 239 | int Kernel::doExecution(ProgramArgs& args) |
nothing calls this directly
no test coverage detected