Skip to content

Commit

Permalink
Improve error output
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Mar 4, 2020
1 parent 4e1cc6a commit dda908d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/interpolation/completion/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function testCompletion(
} else {
const match = result.items.find(i => i.label === ei.label);
if (!match) {
assert.fail(`Can't find matching item for ${JSON.stringify(ei, null, 2)}`);
assert.fail(`Can't find matching item for\n${JSON.stringify(ei, null, 2)}`);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/lsp/completion/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function testCompletion(
} else {
const match = result.items.find(i => i.label === ei.label);
if (!match) {
assert.fail(`Can't find matching item for ${JSON.stringify(ei, null, 2)}`);
assert.fail(`Can't find matching item for\n${JSON.stringify(ei, null, 2)}`);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion test/vue3/completion/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function testCompletion(
} else {
const match = result.items.find(i => i.label === ei.label);
if (!match) {
assert.fail(`Can't find matching item for ${JSON.stringify(ei, null, 2)}`);
assert.fail(`Can't find matching item for\n${JSON.stringify(ei, null, 2)}`);
return;
}

Expand Down

0 comments on commit dda908d

Please sign in to comment.