Skip to content

Commit

Permalink
Fix #5346
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Sep 13, 2016
1 parent 1d2cbe8 commit 95e5f77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rts/System/SpringApp.cpp
Expand Up @@ -712,7 +712,11 @@ CGameController* SpringApp::LoadDemoFile(const std::string& demoFile)

CGameController* SpringApp::RunScript(const std::string& buf)
{
clientSetup->LoadFromStartScript(buf);
try {
clientSetup->LoadFromStartScript(buf);
} catch (const content_error& err) {
throw content_error(std::string("Invalid script file\n") + err.what());
}

if (!clientSetup->demoFile.empty())
return LoadDemoFile(clientSetup->demoFile);
Expand Down

0 comments on commit 95e5f77

Please sign in to comment.