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