Artifact Content
Not logged in

Artifact 1b1a87da99389f1e33b9dc0a9c3f7107829fb288:


'use strict'

const BaseError = require('five-bells-shared/errors/base-error')

class InvalidVerificationError extends BaseError {
  async handler (ctx, log) {
    log.warn('Email verification: ' + this.message)
    ctx.status = 400
    ctx.body = {
      id: this.name,
      message: this.message
    }
  }
}

module.exports = InvalidVerificationError