Skip to content

Commit

Permalink
fix: modify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored and sheremet-va committed Jul 11, 2023
1 parent 88b3975 commit a78e6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/error.ts
Expand Up @@ -191,7 +191,7 @@ export function displayDiff(diff: string | null, console: Console) {

function printErrorMessage(error: ErrorWithDiff, logger: Logger) {
const errorName = error.name || error.nameStr || 'Unknown Error'
if (!(error instanceof Error)) {
if (!error.message) {
logger.error(error)
return
}
Expand Down

0 comments on commit a78e6bd

Please sign in to comment.