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 cc110b4 commit c796317Copy full SHA for c796317
src/cli.ts
@@ -42,6 +42,12 @@ class Cli {
42
if (args.outDir != null) config.proxyjs.outDir = args.outDir;
43
if (args.requireFile != null) config.proxyjs.requireFile = args.requireFile;
44
if (config.baseDir == null) config.baseDir = '';
45
+ if (config.proxyjs.outDir == null) {
46
+ this.throwError('[Error] In proxyjs config `outDir` is undefined.');
47
+ }
48
+ if (config.proxyjs.requireFile == null) {
49
+ this.throwError('[Error] In proxyjs config `requireFile` is undefined.');
50
51
return config;
52
}
53
0 commit comments