Replace std::runtime_exception with TENScriptException.

This commit is contained in:
hispidence 2021-08-03 15:15:42 +01:00
parent dfcbdb753a
commit a637701d63
8 changed files with 16 additions and 16 deletions

View file

@ -64,7 +64,7 @@ std::string GameScriptCameraInfo::GetName() const
void GameScriptCameraInfo::SetName(std::string const & id)
{
if (id.empty() && WarningsAsErrors)
throw std::runtime_error("Name cannot be blank");
throw TENScriptException("Name cannot be blank");
// remove the old name if we have one
s_callbackRemoveName(m_camera.luaName);