mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Make tag check stricter and use a map
This commit is contained in:
@@ -108,10 +108,8 @@ class OError extends Error {
|
||||
|
||||
let stack = oError.stack
|
||||
|
||||
if (oError._oErrorTags) {
|
||||
for (const tag of oError._oErrorTags) {
|
||||
stack += `\n${tag.stack}`
|
||||
}
|
||||
if (Array.isArray(oError._oErrorTags) && oError._oErrorTags.length) {
|
||||
stack += `\n${oError._oErrorTags.map((tag) => tag.stack).join('\n')}`
|
||||
}
|
||||
|
||||
const causeStack = oError.cause && OError.getFullStack(oError.cause)
|
||||
|
||||
Reference in New Issue
Block a user