mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-27 05:44:17 +03:00
Format errors if type is list.
This commit is contained in:
parent
da1ca86caf
commit
4c2f779477
@ -115,6 +115,8 @@ function restoreColorSafe(error) {
|
||||
if (typeof error === "string") {
|
||||
const asJson = JSON.parse(error);
|
||||
return restoreColor(asJson);
|
||||
} else if (Array.isArray(error)) {
|
||||
return error.map(restoreColor).join("\n\n\n");
|
||||
} else {
|
||||
return restoreColor(error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user