Skip to content

Commit

Permalink
Updated some blueprint error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
julianstorer committed Nov 6, 2020
1 parent c32a52f commit 3154a4b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion include/soul/patch/helper_classes/soul_patch_Blueprint.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,21 @@ struct BlueprintEditorComponent : public juce::AudioProcessorEditor,
reactRootComponent.evaluate (fileToLoad);
reactRootComponent.enableHotReloading();
}
catch (const blueprint::EcmascriptEngine::Error&)
catch (const blueprint::EcmascriptEngine::Error& e)
{
failedToLoad = true;
std::cerr << e.context << std::endl
<< e.stack << std::endl;
}
catch (const std::logic_error& e)
{
failedToLoad = true;
std::cerr << e.what() << std::endl;
}
catch (...)
{
failedToLoad = true;
jassertfalse; // maybe need to add handling for some other kind of error?
}
}

Expand Down

0 comments on commit 3154a4b

Please sign in to comment.