mirror of
https://github.com/cupcakearmy/memiens.git
synced 2025-09-05 23:40:40 +00:00
more useful error messages
This commit is contained in:
@@ -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`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user