Skip to content

Commit

Permalink
fix(spec): status should be a number
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Jul 17, 2020
2 parents 41e9540 + aba4784 commit b89cd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = class Problem extends Error {
super(`[${String(status)}] ${String(title)} (${base + String(type)})`)
this.type = base + String(type)
this.title = String(title)
this.status = String(status)
this.status = Number(status)

if (members && members.instance) {
members.instance = base + members.instance
Expand Down

0 comments on commit b89cd3c

Please sign in to comment.