Format errors if type is list.

This commit is contained in:
Dillon Kearns 2022-02-04 10:53:41 -08:00
parent da1ca86caf
commit 4c2f779477

View File

@ -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);
}