Skip to content
Snippets Groups Projects
Commit 843109b9 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] ESLint errors

parent 5c593f27
No related branches found
No related tags found
No related merge requests found
......@@ -441,7 +441,7 @@ program
}
yield server.disconnect();
return jsoned;
} catch(e) {
} catch(err) {
logger.warn(err.message || err);
server.disconnect()
.catch(() => null)
......@@ -691,7 +691,7 @@ function connect(callback, useDefaultConf) {
return callback.apply(this, cbArgs);
} catch(e) {
server.disconnect();
throw Error(err);
throw e;
}
});
};
......@@ -883,8 +883,8 @@ function configure(server, conf) {
logger.debug("Configuration saved.");
return conf;
} catch (e) {
logger.error("Configuration could not be saved: " + err);
throw Error(err);
logger.error("Configuration could not be saved: " + e);
throw Error(e);
}
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment