mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 12:23:53 +00:00
generate error messages when encounting non-critical problems during load
This commit is contained in:
parent
79d59153c1
commit
96ca9500ca
1 changed files with 8 additions and 4 deletions
|
@ -592,7 +592,8 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
|
|||
}
|
||||
else
|
||||
{
|
||||
/// \todo report deletion of non-existing record
|
||||
messages.push_back (std::make_pair (UniversalId::Type_None,
|
||||
"Trying to delete dialogue record " + id + " which does not exist"));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -608,7 +609,9 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
|
|||
{
|
||||
if (!mDialogue)
|
||||
{
|
||||
/// \todo INFO record without matching DIAL record -> report to user
|
||||
messages.push_back (std::make_pair (UniversalId::Type_None,
|
||||
"Found info record not following a dialogue record"));
|
||||
|
||||
mReader->skipRecord();
|
||||
break;
|
||||
}
|
||||
|
@ -636,8 +639,9 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
|
|||
|
||||
default:
|
||||
|
||||
/// \todo throw an exception instead, once all records are implemented
|
||||
/// or maybe report error and continue?
|
||||
messages.push_back (std::make_pair (UniversalId::Type_None,
|
||||
"Unsupported record type: " + n.toString()));
|
||||
|
||||
mReader->skipRecord();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue