File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 21
21
< div class ="center-container ">
22
22
< div class ="error-display ">
23
23
< h2 class ="header "> {{ERROR_HEADER}}</ h2 >
24
- < div class ="body ">
25
- {{ERROR_BODY}}
26
- </ div >
24
+ < div class ="body "> {{ERROR_BODY}}</ div >
27
25
< div class ="links ">
28
26
< a class ="link " href ="{{BASE}}{{TO}} "> go home</ a >
29
27
</ div >
Original file line number Diff line number Diff line change @@ -360,6 +360,9 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
360
360
const config = yaml . safeLoad ( configFile . toString ( ) , {
361
361
filename : configPath ,
362
362
} )
363
+ if ( ! config || typeof config === "string" ) {
364
+ throw new Error ( `invalid config: ${ config } ` )
365
+ }
363
366
364
367
// We convert the config file into a set of flags.
365
368
// This is a temporary measure until we add a proper CLI library.
You can’t perform that action at this time.
0 commit comments