Commit 1e2339a0 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/js-drone: print javascript error stack

parent 69add029
......@@ -46,4 +46,4 @@ md5sum = 3bbb0f80b644d86784aab99b03e88c2f
[worker]
_update_hash_filename_ = drone-scripts/worker.js.jinja2
md5sum = deda0da2b39c256796d1fce021963505
md5sum = 6cde256965271f89c6e82f04e3c0ce5c
......@@ -217,7 +217,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
"function execUserScript(from, me) {" + script_content + "};"
);
} catch (e) {
console.log("Failed to evaluate user script", e);
console.log("Failed to evaluate user script")
console.log(e);
console.log(e.stack);
exitWorker(1);
}
execUserScript(null, user_me);
......@@ -244,7 +246,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
);
user_me.execOperatorScript = execOperatorScript.bind(null, operator);
} catch (e) {
console.log("Failed to evaluate operator script", e);
console.log("Failed to evaluate operator script");
console.log(e);
console.log(e.stack);
}
}
......@@ -335,6 +339,7 @@ import { evalScript, fdopen, loadFile, open } from "std";
// Catch all potential bug to exit the main process
// if it occurs
console.log(error);
console.log(error.stack);
exitWorker(1);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment