Skip to content
Snippets Groups Projects
Commit 011ae39c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Do not use js.report_error()

Properly throw an error instead.
parent be6e64a8
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -1453,7 +1453,7 @@ function save_file() ...@@ -1453,7 +1453,7 @@ function save_file()
var f=new File(output_filename()); var f=new File(output_filename());
if(!f.open("wb")) { if(!f.open("wb")) {
console.clear(); console.clear();
js.report_error(f.error + " (" + errno_str + ") opening " + f.name, true); throw new Error(f.error + " (" + errno_str + ") opening " + f.name);
return false; return false;
} }
var s=make_strings(/* soft-CRs: */Boolean(options.soft_cr), /* embed-colors: */true); var s=make_strings(/* soft-CRs: */Boolean(options.soft_cr), /* embed-colors: */true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment