From e5ac735f329d8d57c986f5e8ac80a4f77ae756da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sun, 23 Mar 2025 00:00:38 -0400 Subject: [PATCH] Log all the random crap when rec is NaN Maybe something will end up being useful, nobody actaully seems to notice it happening though. --- xtrn/lord2/lord2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtrn/lord2/lord2.js b/xtrn/lord2/lord2.js index ba9063aae6..8e0a2e9fee 100644 --- a/xtrn/lord2/lord2.js +++ b/xtrn/lord2/lord2.js @@ -1030,7 +1030,7 @@ function insane_run_ref(sec, fname, refret) var val = replace_vars(getvar(args[2])); if (isNaN(rec)) - throw new Error('@datasave passed invalid rec parameter'); + throw new Error('@datasave passed invalid rec parameter (' + args[1].toSource() + ' = ' + rec.toSource() + ', all args: ' + args.toSource() + ')'); if (!file_exists(f.name)) { if (!f.open('wb')) throw new Error('@datasave unable to create '+f.name); -- GitLab