Skip to content
Snippets Groups Projects
Commit 17d97cdc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

errors refactore to fullfil lint suggestions

parent 6f4e690f
No related branches found
No related tags found
1 merge request!38Resolve "Annotations: reaction decription"
......@@ -5,11 +5,11 @@
var logger = require('./logger');
function InvalidArgumentError(message) {
this.name = "InvalidArgumentError";
this.message = message;
this.stack = (new Error()).stack;
}
InvalidArgumentError.prototype = new Error
InvalidArgumentError.prototype = Object.create(Error.prototype);
InvalidArgumentError.prototype.constructor = InvalidArgumentError;
module.exports = InvalidArgumentError;
......@@ -5,11 +5,11 @@
var logger = require('./logger');
function InvalidCredentialsError(message) {
this.name = "InvalidCredentialsError";
this.message = message;
this.stack = (new Error()).stack;
}
InvalidCredentialsError.prototype = new Error
InvalidCredentialsError.prototype = Object.create(Error.prototype);
InvalidCredentialsError.prototype.constructor = InvalidCredentialsError;
module.exports = InvalidCredentialsError;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment