Fail properly when a content file is not found

actorid
Emanuel Guevel 11 years ago
parent 03b3487f1b
commit 09bd0324c9

@ -2071,6 +2071,12 @@ namespace MWWorld
{
contentLoader.load(col.getPath(*it), idx);
}
else
{
std::stringstream msg;
msg << "Failed loading " << *it << ": the content file does not exist";
throw std::runtime_error(msg.str());
}
}
}

Loading…
Cancel
Save