mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
fix stack thingy
This commit is contained in:
parent
5f77342d8d
commit
a5889828bd
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,7 @@ export class ScramjetClient {
|
||||||
s[0].getFileName() &&
|
s[0].getFileName() &&
|
||||||
!s[0].getFileName().startsWith(location.origin + config.prefix)
|
!s[0].getFileName().startsWith(location.origin + config.prefix)
|
||||||
) {
|
) {
|
||||||
return s;
|
return { stack: err.stack };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -203,6 +203,8 @@ export class ScramjetClient {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof Error) {
|
if (err instanceof Error) {
|
||||||
if ((err.stack as any) instanceof Object) {
|
if ((err.stack as any) instanceof Object) {
|
||||||
|
//@ts-expect-error i'm not going to explain this
|
||||||
|
err.stack = err.stack.stack;
|
||||||
console.error("ERROR FROM SCRMAJET INTERNALS", err);
|
console.error("ERROR FROM SCRMAJET INTERNALS", err);
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue