diff --git a/scripts/Script.ts b/scripts/Script.ts index c7e442fb3..d93bed845 100644 --- a/scripts/Script.ts +++ b/scripts/Script.ts @@ -22,7 +22,7 @@ export default abstract class Script { const green = (s) => "\x1b[92m" + s + "\x1b[0m" 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() { diff --git a/scripts/generateFavouritesLayer.ts b/scripts/generateFavouritesLayer.ts index 91199de87..86e2c104d 100644 --- a/scripts/generateFavouritesLayer.ts +++ b/scripts/generateFavouritesLayer.ts @@ -164,7 +164,7 @@ export class GenerateFavouritesLayer extends Script { continue } 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 }