refactor(error): use error module

This commit is contained in:
Stephan Bönnemann
2015-07-14 12:25:36 +02:00
parent 43c8df0bfe
commit 0316babf7a
4 changed files with 4 additions and 11 deletions
-7
View File
@@ -1,7 +0,0 @@
module.exports = class SemanticReleaseError extends Error {
constructor (message, code) {
super()
this.message = message
this.code = code
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
const SemanticReleaseError = require('./error')
const SemanticReleaseError = require('@semantic-release/error')
module.exports = function (plugins, commits, lastRelease, cb) {
plugins.analyzeCommits(commits, (err, type) => {
+1 -1
View File
@@ -1,4 +1,4 @@
const SemanticReleaseError = require('./error')
const SemanticReleaseError = require('@semantic-release/error')
module.exports = function (pkg, options, env) {
let errors = []