summaryrefslogtreecommitdiff
path: root/src/config/load.ts
diff options
context:
space:
mode:
authorMarcin Cieślak <saper@saper.info>2018-05-16 00:34:39 +0200
committerMarcin Cieślak <saper@saper.info>2018-05-16 00:34:39 +0200
commit87ef08cf7ad0e47e8179f866454429dbce17dec2 (patch)
treef26b9f1cea57cd39d9c0f44690e34780bb7591b8 /src/config/load.ts
parentMerge pull request #1581 from saper/delete_array (diff)
downloadmisskey-87ef08cf7ad0e47e8179f866454429dbce17dec2.tar.gz
misskey-87ef08cf7ad0e47e8179f866454429dbce17dec2.tar.bz2
misskey-87ef08cf7ad0e47e8179f866454429dbce17dec2.zip
Stop webpack on URL error, otherwise gulp continues
$ webpack && gulp build 「dont.know.yet」は、正しいURLではありません。先頭に http:// または https:// をつけ忘れてないかなど確認してください。 [00:28:15] Requiring external module ts-node/register /** node-macaddress: Unkown os.platform(), defaulting to `unix'. Error: Cannot find module './built/client/meta.json' at Function.Module._resolveFilename (module.js:543:15) at Function.Module._load (module.js:470:25) at Module.require (module.js:593:17) at require (internal/module.js:11:18) /** * Config loader at Object.<anonymous> (/usr/home/saper/sw/misskey/gulpfile.ts:24:16) at Module._compile (module.js:649:30) at Module.m._compile (/usr/home/saper/sw/misskey/node_modules/ts-node/src/index.ts:402:23) at Module._extensions..js (module.js:660:10) at Object.require.extensions.(anonymous function) [as .ts] (/usr/home/saper/sw/misskey/node_modules/ts-node/src/index.ts:405:12) at Module.load (module.js:561:32) error Command failed with exit code 1.
Diffstat (limited to 'src/config/load.ts')
-rw-r--r--src/config/load.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/load.ts b/src/config/load.ts
index 9f4e2151f3..fea89b989a 100644
--- a/src/config/load.ts
+++ b/src/config/load.ts
@@ -53,5 +53,5 @@ function normalizeUrl(url: string) {
function urlError(url: string) {
console.error(`「${url}」は、正しいURLではありません。先頭に http:// または https:// をつけ忘れてないかなど確認してください。`);
- process.exit();
+ process.exit(99);
}