Skip to content

Commit 3154a4b

Browse files
committed
Updated some blueprint error handling
1 parent c32a52f commit 3154a4b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

include/soul/patch/helper_classes/soul_patch_Blueprint.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,21 @@ struct BlueprintEditorComponent : public juce::AudioProcessorEditor,
6868
reactRootComponent.evaluate (fileToLoad);
6969
reactRootComponent.enableHotReloading();
7070
}
71-
catch (const blueprint::EcmascriptEngine::Error&)
71+
catch (const blueprint::EcmascriptEngine::Error& e)
7272
{
7373
failedToLoad = true;
74+
std::cerr << e.context << std::endl
75+
<< e.stack << std::endl;
76+
}
77+
catch (const std::logic_error& e)
78+
{
79+
failedToLoad = true;
80+
std::cerr << e.what() << std::endl;
81+
}
82+
catch (...)
83+
{
84+
failedToLoad = true;
85+
jassertfalse; // maybe need to add handling for some other kind of error?
7486
}
7587
}
7688

0 commit comments

Comments
 (0)