restle-error
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -47,2 +47,3 @@ const RestleError = require('./restle-error'); | ||
const method = options.method; | ||
const target = options.target; | ||
@@ -52,3 +53,3 @@ this.status = 400; | ||
this.title = `Relationship error`; | ||
this.detail = `You cannot ${method} a ${type} relationship.`; | ||
this.detail = `You cannot ${method} a ${type} relationship with a ${target}.`; | ||
} | ||
@@ -55,0 +56,0 @@ |
{ | ||
"name": "restle-error", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Restle errors.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6901
151