fixed bug reading non-existant config files
这个提交包含在:
父节点
c9318b65b0
当前提交
de3977d1e4
@ -43,7 +43,7 @@ function createStorage(filename, filetype) {
|
||||
function read() {
|
||||
return fs.readFileAsync(filename).then(parse).catch(function (err) {
|
||||
if (err.code === 'ENOENT') {
|
||||
return '';
|
||||
return {};
|
||||
}
|
||||
return PromiseA.reject(err);
|
||||
});
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户