mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
9793f19ecd
commit
66677defea
2 changed files with 11 additions and 11 deletions
|
@ -175,7 +175,7 @@ export async function getViteErrorPayload(err: ErrorWithMetadata): Promise<Astro
|
||||||
},
|
},
|
||||||
plugin,
|
plugin,
|
||||||
stack: err.stack,
|
stack: err.stack,
|
||||||
cause: err.cause
|
cause: err.cause,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -605,16 +605,16 @@ class ErrorOverlay extends HTMLElement {
|
||||||
this.text('#title', err.title);
|
this.text('#title', err.title);
|
||||||
this.text('#message-content', err.message, true);
|
this.text('#message-content', err.message, true);
|
||||||
|
|
||||||
const cause = this.root.querySelector<HTMLElement>('#cause');
|
const cause = this.root.querySelector<HTMLElement>('#cause');
|
||||||
if (cause && err.cause) {
|
if (cause && err.cause) {
|
||||||
if (typeof err.cause === 'string') {
|
if (typeof err.cause === 'string') {
|
||||||
this.text('#cause-content', err.cause);
|
this.text('#cause-content', err.cause);
|
||||||
cause.style.display = 'block';
|
cause.style.display = 'block';
|
||||||
} else {
|
} else {
|
||||||
this.text('#cause-content', JSON.stringify(err.cause, null, 2));
|
this.text('#cause-content', JSON.stringify(err.cause, null, 2));
|
||||||
cause.style.display = 'block';
|
cause.style.display = 'block';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const hint = this.root.querySelector<HTMLElement>('#hint');
|
const hint = this.root.querySelector<HTMLElement>('#hint');
|
||||||
if (hint && err.hint) {
|
if (hint && err.hint) {
|
||||||
|
|
Loading…
Reference in a new issue