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