| 2350 | } |
| 2351 | |
| 2352 | void DbgModule::Fail(const StringImpl& error) |
| 2353 | { |
| 2354 | if (mFailMsgPtr != NULL) |
| 2355 | { |
| 2356 | if (mFailMsgPtr->IsEmpty()) |
| 2357 | *mFailMsgPtr = error; |
| 2358 | } |
| 2359 | |
| 2360 | String errorStr = "error "; |
| 2361 | if (!mFilePath.IsEmpty()) |
| 2362 | { |
| 2363 | errorStr += "Error in "; |
| 2364 | errorStr += mFilePath; |
| 2365 | errorStr += ": "; |
| 2366 | } |
| 2367 | errorStr += error; |
| 2368 | errorStr += "\n"; |
| 2369 | |
| 2370 | mDebugger->OutputRawMessage(errorStr); |
| 2371 | mFailed = true; |
| 2372 | } |
| 2373 | |
| 2374 | void DbgModule::SoftFail(const StringImpl& error) |
| 2375 | { |
no test coverage detected