Skip to content

Commit

Permalink
Removed NowError
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Mar 12, 2019
1 parent d6f9970 commit cfeebc6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { handleError } from './util/error';
import reportError from './util/report-error';
import getConfig from './util/get-config';
import * as ERRORS from './util/errors-ts';
import { NowError } from './util/now-error';

const NOW_DIR = getNowDir();
const NOW_CONFIG_PATH = configFiles.getConfigFilePath();
Expand Down Expand Up @@ -86,11 +85,6 @@ const main = async argv_ => {

const localConfig = await getConfig(output, argv['--local-config']);

if (localConfig instanceof NowError) {
output.error(`Failed to load local config file: ${localConfig.message}`);
return 1;
}

if (localConfig instanceof ERRORS.CantParseJSONFile) {
output.error(`Couldn't parse JSON file ${localConfig.meta.file}.`);
return 1;
Expand Down

0 comments on commit cfeebc6

Please sign in to comment.