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:
parent
79d59153c1
commit
96ca9500ca
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user