UNPKG

ilp-core

Version:

ILP core module managing ledger abstraction

20 lines (16 loc) 401 B
'use strict' const BaseError = require('five-bells-shared/errors/base-error') class PasswordsDontMatchError extends BaseError { constructor (message) { super(message) } * handler (ctx, log) { log.warn('Passwords don\'t match: ' + this.message) ctx.status = 422 ctx.body = { id: this.name, message: this.message } } } module.exports = PasswordsDontMatchError