format import core from '../utils/core' ; const { Logger } = core ; const logger = new Logger ( 'S-CLI-ERROR' ) ; export class ServerlessError { constructor ( phase , message , params ? ) { logger . error ( phase + ': ' + message , params ) ; process . exit ( 1 ) ; } }