mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
config file error handling
This commit is contained in:
parent
e01d30adb9
commit
11bf03f130
1 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,11 @@ function Config(config) {
|
|||
if (this[i] == null) this[i] = config[i];
|
||||
}
|
||||
|
||||
// some weird shell scripts are valid yaml files parsed as string
|
||||
assert.equal(typeof(config), 'object', 'CONFIG: this doesn\'t look like a valid config file');
|
||||
|
||||
assert(this.storage, 'CONFIG: storage path not defined');
|
||||
|
||||
var users = {all:true};
|
||||
|
||||
var check_user_or_uplink = function(arg) {
|
||||
|
|
Loading…
Reference in a new issue