We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489824a commit ebd2513Copy full SHA for ebd2513
packages/server/config.ts
@@ -38,7 +38,7 @@ seatFile: /home/icpc/Desktop/seat.txt
38
logger.error('Config file generated, please fill in the config.yaml');
39
resolve();
40
})());
41
- throw new Error();
+ throw new Error('no-config');
42
}
43
44
const serverSchema = Schema.object({
packages/server/index.ts
@@ -17,7 +17,9 @@ fs.ensureDirSync(tmpdir);
17
let config;
18
try {
19
config = require('./config').config;
20
-} catch (e) { }
+} catch (e) {
21
+ if (e.message !== 'no-config') throw e;
22
+}
23
24
async function applyServer(ctx: Context) {
25
ctx.plugin(await import('./service/server'));
0 commit comments