Skip to content

Commit

Permalink
Merge pull request #2588 from Holzhaus/script-error-reporting
Browse files Browse the repository at this point in the history
Improve Controller Script Error Reporting
  • Loading branch information
Be-ing authored Apr 18, 2020
2 parents e3ab409 + 1d3f91c commit 9adf8a9
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 121 deletions.
2 changes: 1 addition & 1 deletion src/controllers/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool Controller::applyPreset(bool initializeScripts) {
}

bool success = m_pEngine->loadScriptFiles(scriptFiles);
if (initializeScripts) {
if (success && initializeScripts) {
m_pEngine->initializeScripts(scriptFiles);
}
return success;
Expand Down
Loading

0 comments on commit 9adf8a9

Please sign in to comment.