removed looger.error, returned 'throw new Error'