Improve error messages by adding additional context to an error
npm install @lvce-editor/verrorImprove error messages by adding additional context to an error.
``sh`
npm install @lvce-editor/verror
`js
import { VError } from '@lvce-editor/verror'
const otherFunction = () => {
throw new Error(oops)
}
const doSomething = () => {
try {
const data = otherFunction()
return data
} catch (error) {
throw new VError(error, failed to get data)``
}
}
