aboutsummaryrefslogtreecommitdiff
path: root/typescript
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-27 19:18:42 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-27 19:18:42 +0200
commit73864d898c3fb3cb0d9a8e3060ae01e780774d48 (patch)
treed3b07d36074f8a58e10856e6cf5975edcd55c7a7 /typescript
parenta3104b69bc8153eed684f54e4249c84a6559182f (diff)
downloadkartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.tar.gz
kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.tar.bz2
kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.zip
Sleek new loading screen
Diffstat (limited to 'typescript')
-rw-r--r--typescript/builder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/typescript/builder.js b/typescript/builder.js
index d021fb2..8007615 100644
--- a/typescript/builder.js
+++ b/typescript/builder.js
@@ -12,7 +12,7 @@ fs.copyFileSync("./typescript/interface.ts", homedir + "/.kartik/build/kartik.ts
cp = require('child_process').spawnSync(cmd, [ "./node_modules/typescript/bin/tsc", "--skipLibCheck", "--removeComments", "--sourceMap", "-m", "commonjs", "--target", "es6", homedir + "/.kartik/build/kartik.ts" ], { cwd: KartikRoot });
if (cp.status !== 0) {
- console.error(cp.stdout.toString());
+ try { console.error(cp.stdout.toString()); } catch (e) {}
throw new Error("Subprocess exited with code " + cp.status);
}
@@ -47,4 +47,4 @@ module.exports = (source, destination) => {
lines = fs.readFileSync(destination.substr(0, destination.length - 6) + ".js").toString().split("\n");
lines[1] = "";
fs.writeFileSync(destination.substr(0, destination.length - 6) + ".js", lines.join("\n"));
-} \ No newline at end of file
+}