From 0c17a76c6650eee1d8abaff11a897a432eeaa65f Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 8 Jun 2020 19:16:53 -0700 Subject: [PATCH] fix: better error message for broken tsconfig.json (#501) --- src/util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index f66a0995..b86a6232 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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; } }