diff --git a/loader/app/loader/script_loader.ts b/loader/app/loader/script_loader.ts index d6215e04..7d48c7d3 100644 --- a/loader/app/loader/script_loader.ts +++ b/loader/app/loader/script_loader.ts @@ -122,6 +122,8 @@ export async function load_multiple(paths: SourcePath[], options: MultipleOption let errorMessage; if(error instanceof LoadSyntaxError) errorMessage = error.source.message; + else if(typeof error === "string") + errorMessage = error; else errorMessage = "View the browser console for more information!"; critical_error("Failed to load script " + script_name(result.failed[0].request, true), errorMessage);