Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a78e6bd

Browse filesBrowse files
bteasheremet-va
authored andcommitted
fix: modify condition
1 parent 88b3975 commit a78e6bd
Copy full SHA for a78e6bd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎packages/vitest/src/node/error.ts

Copy file name to clipboardExpand all lines: packages/vitest/src/node/error.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function displayDiff(diff: string | null, console: Console) {
191191

192192
function printErrorMessage(error: ErrorWithDiff, logger: Logger) {
193193
const errorName = error.name || error.nameStr || 'Unknown Error'
194-
if (!(error instanceof Error)) {
194+
if (!error.message) {
195195
logger.error(error)
196196
return
197197
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.