before changes

This commit is contained in:
2026-10-05 16:14:53 -04:00
parent dd6e6f7cfd
commit f39555ce15
94 changed files with 3285321 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
const stringifyError = (error = {}) => {
return JSON.stringify(error, Object.getOwnPropertyNames(error))
}
const potionErrorObj = (error = {}, details = {}) => {
const stringifiedError = stringifyError(error)
const stringifiedObject = JSON.stringify({
error: stringifiedError,
details,
})
return stringifiedObject
}
module.exports = { potionErrorObj, stringifyError }