Skip to content

Commit

Permalink
fix color change
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpaterson committed Dec 14, 2024
1 parent f91c108 commit 9779b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/fauna.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const formatError = (err, _opts = {}) => {
typeof err.queryInfo.summary === "string"
) {
// Otherwise, return the summary and fall back to the message.
return `${chalk.red("The query failed with the following error:")}\n\n${formatQuerySummary(err.queryInfo?.summary, { color: color ?? true }) ?? err.message}`;
return `${chalk.red("The query failed with the following error:")}\n\n${formatQuerySummary(err.queryInfo?.summary) ?? err.message}`;
} else {
if (err.name === "NetworkError") {
return `The query failed unexpectedly with the following error:\n\n${NETWORK_ERROR_MESSAGE}`;
Expand Down

0 comments on commit 9779b52

Please sign in to comment.