Skip to content

Commit

Permalink
fix: just print error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed May 6, 2020
1 parent d94a240 commit a8c027f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/util.ts
Expand Up @@ -76,10 +76,6 @@ async function getBase(
readFiles.add(filePath);
try {
const json = await customReadFilep(filePath, 'utf8');
} catch (err) {
throw new Error(`${filePath} not found`);
}
try {
let contents = JSON.parse(json);

if (contents.extends) {
Expand All @@ -95,7 +91,7 @@ async function getBase(

return contents;
} catch (err) {
throw new Error(`${filePath} cannot be parsed`);
throw new Error(`Error: ${filePath}: ${err}`);
}
}

Expand Down

0 comments on commit a8c027f

Please sign in to comment.