mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 11:29:19 +01:00
fix stack trace missing in some errors
This commit is contained in:
@ -163,11 +163,11 @@ function makeRuntimeErrorMsg(ctx: NetscriptContext, msg: string): string {
|
||||
for (const stackline of stack) {
|
||||
let filename;
|
||||
for (const script of scripts) {
|
||||
if (script.url && stackline.includes(script.url)) {
|
||||
if (script.filename && stackline.includes(script.filename)) {
|
||||
filename = script.filename;
|
||||
}
|
||||
for (const dependency of script.dependencies) {
|
||||
if (stackline.includes(dependency.url)) {
|
||||
if (stackline.includes(dependency.filename)) {
|
||||
filename = dependency.filename;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user