import { OhbugConfig } from '@ohbug/types' ; export function getConfigErrorMessage ( errors , config ) { return new Error ( `Invalid configuration\n${ Object . keys ( errors ) . map ( ( key ) => `- ${ key } ${ errors [ key ] }, got ${ JSON . stringify ( config [ key ] ) }` ) . join ( '\n' ) }
      ` ) ; } export function getErrorMessage ( message , data ) { return new Error ( `Invalid data\n- ${ message }, got ${ JSON . stringify ( data ) }` ) ; }