mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 21:03:11 -05:00
Make tag check stricter and use a map
This commit is contained in:
parent
4b0060f0b1
commit
497f2a7936
1 changed files with 2 additions and 4 deletions
|
@ -108,10 +108,8 @@ class OError extends Error {
|
||||||
|
|
||||||
let stack = oError.stack
|
let stack = oError.stack
|
||||||
|
|
||||||
if (oError._oErrorTags) {
|
if (Array.isArray(oError._oErrorTags) && oError._oErrorTags.length) {
|
||||||
for (const tag of oError._oErrorTags) {
|
stack += `\n${oError._oErrorTags.map((tag) => tag.stack).join('\n')}`
|
||||||
stack += `\n${tag.stack}`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const causeStack = oError.cause && OError.getFullStack(oError.cause)
|
const causeStack = oError.cause && OError.getFullStack(oError.cause)
|
||||||
|
|
Loading…
Reference in a new issue