added UserError

This commit is contained in:
gerard 2018-09-14 14:45:29 +02:00
parent 0926e481ed
commit df85500ab5
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module.exports = Self => {
Self.removes = async params => {
if (!params.rows || !params.rows.length)
throw new Error('There is nothing delete');
throw new UserError('There is nothing delete');
await Self.app.models.Order.isEditable(params.actualOrderId);