@@ -250,7 +250,7 @@ namespace reactjuce
250250 }
251251
252252 // ==============================================================================
253- juce::String sourceMapError (const juce::String &err, const juce::File &code )
253+ juce::String sourceMapError (const juce::String &err)
254254 {
255255 std::unordered_map<juce::String, std::unique_ptr<SourceMap>> maps;
256256 std::string s = err.toStdString ();
@@ -380,7 +380,7 @@ namespace reactjuce
380380 }
381381 catch (const jsi::JSIException &e)
382382 {
383- throw Error (e.what ());
383+ throw Error (sourceMapError ( e.what () ));
384384 }
385385 }
386386
@@ -396,7 +396,7 @@ namespace reactjuce
396396 }
397397 catch (const jsi::JSIException &e)
398398 {
399- throw Error (sourceMapError (e.what (), code ));
399+ throw Error (sourceMapError (e.what ()));
400400 }
401401 }
402402
@@ -415,7 +415,7 @@ namespace reactjuce
415415 }
416416 catch (const jsi::JSIException &e)
417417 {
418- throw Error (sourceMapError (e.what (), code ));
418+ throw Error (sourceMapError (e.what ()));
419419 }
420420 }
421421
@@ -481,7 +481,7 @@ namespace reactjuce
481481 }
482482 catch (const jsi::JSIException &e)
483483 {
484- throw Error (e.what ());
484+ throw Error (sourceMapError ( e.what () ));
485485 }
486486 }
487487
0 commit comments