mirror of
https://github.com/cupcakearmy/memiens.git
synced 2024-12-22 07:56:26 +00:00
more useful error messages
This commit is contained in:
parent
401236f5eb
commit
f9e2870143
@ -36,7 +36,7 @@ export default class Memiens {
|
|||||||
this.set(setting, defaultValue)
|
this.set(setting, defaultValue)
|
||||||
return 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`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user