1
0
Fork 0

Improved some exception diagnostics.

This commit is contained in:
Julian Smith 2021-09-22 21:09:59 +01:00
parent 04722ce9f6
commit d81445a3bb
2 changed files with 2 additions and 2 deletions

View file

@ -416,7 +416,7 @@ void APTLoader::throwExceptionIfStreamError(const sg_gzifstream& input_stream,
SG_LOG( SG_NAVAID, SG_ALERT, SG_LOG( SG_NAVAID, SG_ALERT,
"Error while reading '" << path.utf8Str() << "': " << errMsg ); "Error while reading '" << path.utf8Str() << "': " << errMsg );
throw sg_io_exception("Error reading file (" + errMsg + ")", throw sg_io_exception("APTLoader: error reading file (" + errMsg + ")",
sg_location(path)); sg_location(path));
} }
} }

View file

@ -166,7 +166,7 @@ void FixesLoader::throwExceptionIfStreamError(
SG_LOG(SG_NAVAID, SG_ALERT, SG_LOG(SG_NAVAID, SG_ALERT,
"Error while reading '" << path.utf8Str() << "': " << errMsg); "Error while reading '" << path.utf8Str() << "': " << errMsg);
throw sg_io_exception("Error reading file (" + errMsg + ")", throw sg_io_exception("FixesLoader: error reading file (" + errMsg + ")",
sg_location(path)); sg_location(path));
} }
} }