Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
2fc3000e
Commit
2fc3000e
authored
Sep 23, 2024
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/js-drone: print javascript error stack
parent
e65ba795
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
software/js-drone/buildout.hash.cfg
software/js-drone/buildout.hash.cfg
+1
-1
software/js-drone/drone-scripts/worker.js.jinja2
software/js-drone/drone-scripts/worker.js.jinja2
+7
-2
No files found.
software/js-drone/buildout.hash.cfg
View file @
2fc3000e
...
@@ -46,4 +46,4 @@ md5sum = 3bbb0f80b644d86784aab99b03e88c2f
...
@@ -46,4 +46,4 @@ md5sum = 3bbb0f80b644d86784aab99b03e88c2f
[worker]
[worker]
_update_hash_filename_ = drone-scripts/worker.js.jinja2
_update_hash_filename_ = drone-scripts/worker.js.jinja2
md5sum =
deda0da2b39c256796d1fce021963505
md5sum =
6cde256965271f89c6e82f04e3c0ce5c
software/js-drone/drone-scripts/worker.js.jinja2
View file @
2fc3000e
...
@@ -217,7 +217,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
...
@@ -217,7 +217,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
"function execUserScript(from, me) {" + script_content + "};"
"function execUserScript(from, me) {" + script_content + "};"
);
);
} catch (e) {
} 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);
exitWorker(1);
}
}
execUserScript(null, user_me);
execUserScript(null, user_me);
...
@@ -244,7 +246,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
...
@@ -244,7 +246,9 @@ import { evalScript, fdopen, loadFile, open } from "std";
);
);
user_me.execOperatorScript = execOperatorScript.bind(null, operator);
user_me.execOperatorScript = execOperatorScript.bind(null, operator);
} catch (e) {
} 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";
...
@@ -335,6 +339,7 @@ import { evalScript, fdopen, loadFile, open } from "std";
// Catch all potential bug to exit the main process
// Catch all potential bug to exit the main process
// if it occurs
// if it occurs
console.log(error);
console.log(error);
console.log(error.stack);
exitWorker(1);
exitWorker(1);
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment