This commit is contained in:
sora 2019-10-23 11:12:09 +02:00
parent 5b325c4ae5
commit de1a8c3cb8

View File

@ -21,7 +21,7 @@ module.exports = function(name){
this.init = function(){
fs.readFile(this.file, (err, data) => {
if (err.errno==-2 && err.code == "ENOENT"){
if (err && err.errno==-2 && err.code == "ENOENT"){
this.set(db);
return;
}else if (err) throw err;