File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 128
128
jsErrorOccurred = true ;
129
129
Log (@" ***** JavaScript exception occurred "
130
130
@" in debug mode *****\n " );
131
- Log (@" %@ " , reasonStr);
131
+ Log (@" %s " , fullMessage.c_str ());
132
+ Log (@" %s " , stackTrace.c_str ());
132
133
// NSLog(@"🎨 CALLING ShowErrorModal for OnUncaughtError - should display beautiful branded "
133
134
// @"modal...");
134
135
150
151
// Use the same comprehensive fullMessage that the terminal uses (identical stack traces)
151
152
std::string completeStackTrace = reasonStr ? [reasonStr UTF8String ] : fullMessage;
152
153
Log (@" ***** End stack trace - Fix error to continue *****\n " );
153
- ShowErrorModal (errorTitle, errorMessage, completeStackTrace );
154
+ ShowErrorModal (errorTitle, errorMessage, stackTrace );
154
155
155
156
// Don't crash in debug mode - just return
156
157
return ;
437
438
if (app.windows .count == 0 && app.connectedScenes .count == 0 ) {
438
439
Log (@" Note: JavaScript error during boot." );
439
440
Log (@" ================================" );
440
- Log (@" %@ " , [ NSString stringWithUTF8String: stackTrace.c_str ()] );
441
+ Log (@" %s " , stackTrace.c_str ());
441
442
Log (@" ================================" );
442
443
Log (@" Please fix the error and save the file to auto reload the app." );
443
444
Log (@" ================================" );
You can’t perform that action at this time.
0 commit comments