diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
commit | d5a620cf09b835db2bccd99556525c90b458719f (patch) | |
tree | 1507f96be0413bd20026878890b0c1ad438e51d2 /modding/compiler.js | |
parent | 44210691ee8444509ac466a362337af77f2bcd49 (diff) | |
download | kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.gz kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.bz2 kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.zip |
i18n for 21.08
Diffstat (limited to 'modding/compiler.js')
-rw-r--r-- | modding/compiler.js | 32 |
1 files changed, 16 insertions, 16 deletions
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 |