UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

15 lines (10 loc) 417 B
"use strict"; const BaseError = require('./base-error'); const c = require('colorette'); class InvalidArgumentValueError extends BaseError { constructor(arg, value, command, originalError, program) { let msg = `Invalid value '${value}' for argument ${c.italic(arg)}.\n ${originalError.meta.originalError}`; super(msg, {arg, command, value}, program); } } module.exports = InvalidArgumentValueError;