mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(config) {} -> Error
This commit is contained in:
parent
75b9ff94ac
commit
9f119eff89
1 changed files with 1 additions and 3 deletions
|
|
@ -58,9 +58,7 @@
|
|||
if (data)
|
||||
fs.writeFile(ConfigHome, data, callback);
|
||||
else
|
||||
callback({
|
||||
message: 'Error: config is empty!'
|
||||
});
|
||||
callback(Error('Config is empty!'));
|
||||
}
|
||||
|
||||
function socket(sock) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue