Navigation Menu

Skip to content

Commit

Permalink
fix: better error message for broken tsconfig.json (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Jun 9, 2020
1 parent 071c33c commit 0c17a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.ts
Expand Up @@ -91,7 +91,8 @@ async function getBase(

return contents;
} catch (err) {
throw new Error(`${filePath} Not Found`);
err.message = `Error: ${filePath}\n${err.message}`;
throw err;
}
}

Expand Down

0 comments on commit 0c17a76

Please sign in to comment.