From f9e28701430300afbbe8f30df128c7ed2376e7e7 Mon Sep 17 00:00:00 2001 From: cupcakearmy <nicco.borgioli@gmail.com> Date: Mon, 9 Sep 2019 12:53:20 +0200 Subject: [PATCH] more useful error messages --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 839c1d8..f8f1674 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,7 +36,7 @@ export default class Memiens { this.set(setting, defaultValue) return defaultValue } - throw new Error('Could not load the setting') + throw new Error(`Could not load the setting: "${setting}" and no default value was provided`) }