From d5a620cf09b835db2bccd99556525c90b458719f Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 5 Aug 2021 17:21:23 +0200 Subject: i18n for 21.08 --- modding/compiler.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'modding/compiler.js') diff --git a/modding/compiler.js b/modding/compiler.js index 240c9a9..693a1e3 100644 --- a/modding/compiler.js +++ b/modding/compiler.js @@ -1,17 +1,17 @@ -class BuildError extends Error { - constructor(orig, ...params) { - super(...params); - this.name = "BuildError"; - this.stack = this.stack + "\n" + orig.stack; - } -} - -const tsbuild = require('../typescript/builder'); - -for (file of importedTypeScriptFiles) { - try { - tsbuild(file.file, homedir + "/.kartik/build/" + file.output); - } catch (e) { - throw new BuildError(e, "Error while building " + file.file + " from package " + file.pkg) - } +class BuildError extends Error { + constructor(orig, ...params) { + super(...params); + this.name = "BuildError"; + this.stack = this.stack + "\n" + orig.stack; + } +} + +const tsbuild = require('../typescript/builder'); + +for (file of importedTypeScriptFiles) { + try { + tsbuild(file.file, homedir + "/.kartik/build/" + file.output); + } catch (e) { + throw new BuildError(e, "Error while building " + file.file + " from package " + file.pkg) + } } \ No newline at end of file -- cgit