Archived
1
0

Fix fmt and lint

This commit is contained in:
Anmol Sethi 2020-08-26 14:21:37 -04:00
parent c80d093dc4
commit c8f63b61c4
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
2 changed files with 4 additions and 3 deletions

View File

@ -21,9 +21,7 @@
<div class="center-container"> <div class="center-container">
<div class="error-display"> <div class="error-display">
<h2 class="header">{{ERROR_HEADER}}</h2> <h2 class="header">{{ERROR_HEADER}}</h2>
<div class="body"> <div class="body">{{ERROR_BODY}}</div>
{{ERROR_BODY}}
</div>
<div class="links"> <div class="links">
<a class="link" href="{{BASE}}{{TO}}">go home</a> <a class="link" href="{{BASE}}{{TO}}">go home</a>
</div> </div>

View File

@ -360,6 +360,9 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
const config = yaml.safeLoad(configFile.toString(), { const config = yaml.safeLoad(configFile.toString(), {
filename: configPath, filename: configPath,
}) })
if (!config || typeof config === "string") {
throw new Error(`invalid config: ${config}`)
}
// We convert the config file into a set of flags. // We convert the config file into a set of flags.
// This is a temporary measure until we add a proper CLI library. // This is a temporary measure until we add a proper CLI library.