UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 381 B
import e from"../../libs/logger/index.mjs";var t=class extends Error{scope;kill;constructor(t){super(t.message),this.scope=t.scope,this.kill=t.kill,e.error({error:this,event:`lucid.error.thrown`,message:`Lucid error thrown`,scope:this.scope,data:{...t.data??{},errorMessage:this.message}}),this.kill&&process.exit(1)}};export{t as default}; //# sourceMappingURL=lucid-error.mjs.map