import { Config } from '@foal/core' ; export param { * } err returns { * } export function maskAndLogError ( err ) { console . log ( err ) ; if ( Config . get ( 'settings.debug' , 'boolean' ) ) { return err ; } return new Error ( 'Internal Server Error' ) ; }