Better error output
This commit is contained in:
parent
62bc005534
commit
5a72ad46d4
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ export default abstract class Script {
|
||||||
const green = (s) => "\x1b[92m" + s + "\x1b[0m"
|
const green = (s) => "\x1b[92m" + s + "\x1b[0m"
|
||||||
console.log(green("All done! (" + millisNeeded + " ms)"))
|
console.log(green("All done! (" + millisNeeded + " ms)"))
|
||||||
})
|
})
|
||||||
.catch((e) => console.log("ERROR in script:", e))
|
.catch((e) => console.log(`ERROR in script ${process.argv[1]}:`, e))
|
||||||
}
|
}
|
||||||
|
|
||||||
public printHelp() {
|
public printHelp() {
|
||||||
|
|
|
@ -164,7 +164,7 @@ export class GenerateFavouritesLayer extends Script {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (optimized === false) {
|
if (optimized === false) {
|
||||||
throw "Optimized into 'false', this is weird..."
|
throw `Optimized ${TagUtils.Tag({or: conditions}).asHumanString()} into 'false', this is weird...`
|
||||||
}
|
}
|
||||||
tr.condition = optimized
|
tr.condition = optimized
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue