1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

generate error messages when encounting non-critical problems during load

This commit is contained in:
Marc Zinnschlag 2014-05-10 13:47:22 +02:00
parent 79d59153c1
commit 96ca9500ca

View File

@ -592,7 +592,8 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
} }
else 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 else
@ -608,7 +609,9 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
{ {
if (!mDialogue) 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(); mReader->skipRecord();
break; break;
} }
@ -636,8 +639,9 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
default: default:
/// \todo throw an exception instead, once all records are implemented messages.push_back (std::make_pair (UniversalId::Type_None,
/// or maybe report error and continue? "Unsupported record type: " + n.toString()));
mReader->skipRecord(); mReader->skipRecord();
} }