Skip to content

Commit 3f7fd79

Browse files
author
Peter Marton
authored
chore(package): use restify-errors 8.x (#1782)
1 parent fb0d428 commit 3f7fd79

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/plugins/audit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
var assert = require('assert-plus');
66
var bunyan = require('bunyan');
77
var HttpError = require('restify-errors').HttpError;
8-
var VError = require('verror');
8+
var errors = require('restify-errors');
99
var hrTimeDurationInMs = require('./utils/hrTimeDurationInMs');
1010

1111
/**
@@ -184,7 +184,7 @@ function auditLogger(opts) {
184184
opts.event !== 'pre' &&
185185
opts.event !== 'routed'
186186
) {
187-
throw new VError(
187+
throw new errors.VError(
188188
'opts.event must be %s, %s, or %s, but is %s',
189189
'pre',
190190
'routed',

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,12 @@
108108
"once": "^1.4.0",
109109
"pidusage": "^2.0.17",
110110
"qs": "^6.5.2",
111-
"restify-errors": "^7.0.0",
111+
"restify-errors": "^8.0.0",
112112
"semver": "^5.4.1",
113113
"send": "^0.16.2",
114114
"spdy": "^4.0.0",
115115
"uuid": "^3.1.0",
116-
"vasync": "^2.2.0",
117-
"verror": "^1.10.0"
116+
"vasync": "^2.2.0"
118117
},
119118
"optionalDependencies": {
120119
"dtrace-provider": "^0.8.1"

0 commit comments

Comments
 (0)