UNPKG

sentry-adonis-v6

Version:
13 lines (12 loc) 366 B
import { RuntimeException } from '@poppinss/utils'; export function defineConfig(config) { if (!config.dsn) { throw new RuntimeException('Missing "dsn" property in sentry config.'); } if (!config.environment) { throw new RuntimeException('Missing "environment" property in sentry config.'); } return { ...config, }; }