| 35 | REGISTER_FUNCTION_NONCONST(Internal, IfwApiCheck, &IfwApiCheckTask::ScriptFunc, "checkable:cr:producer:resolvedMacros:useResolvedMacros"); |
| 36 | |
| 37 | static const char* GetUnderstandableError(const std::exception& ex) |
| 38 | { |
| 39 | auto se (dynamic_cast<const boost::system::system_error*>(&ex)); |
| 40 | |
| 41 | if (se && se->code() == boost::asio::error::operation_aborted) { |
| 42 | return "Timeout exceeded"; |
| 43 | } |
| 44 | |
| 45 | return ex.what(); |
| 46 | } |
| 47 | |
| 48 | // Note: If DoIfwNetIo returns due to an error, the plugin output of the specified CheckResult (cr) will always be set, |
| 49 | // and if it was successful, the cr exit status, plugin state and performance data (if any) will also be overridden. |