more useful error messages

This commit is contained in:
cupcakearmy 2019-09-09 12:53:20 +02:00
parent 401236f5eb
commit f9e2870143

View File

@ -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`)
}