{"version":3,"file":"error.mjs","sources":["../../../../packages/utils/error.ts"],"sourcesContent":["class GplusError extends Error {\n  constructor(m: string) {\n    super(m);\n    this.name = \"GPlusError\";\n  }\n}\n\nexport function throwError(scope: string, m: string): never {\n  throw new GplusError(`[${scope}] ${m}`);\n}\n\nexport function debugWarn(scope: string, message: string): void {\n  if (process.env.NODE_ENV !== \"production\") {\n    // eslint-disable-next-line no-console\n    console.warn(new GplusError(`[${scope}] ${message}`));\n  }\n}\n"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,KAAK,CAAC;AAC/B,EAAE,WAAW,CAAC,CAAC,EAAE;AACjB,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AACb,IAAI,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;AAC7B,GAAG;AACH,CAAC;AACM,SAAS,UAAU,CAAC,KAAK,EAAE,CAAC,EAAE;AACrC,EAAE,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,CAAC;AACM,SAAS,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE;AAC1C,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC7C,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,GAAG;AACH;;;;"}