Skip to content

Commit 626f0ac

Browse files
committed
add msg
1 parent 12dd501 commit 626f0ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte2tsx/test/helpers.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ export class Sample {
113113
} catch (err) {
114114
if (sample.on_error) sample.on_error(sample.generate.bind(sample), err);
115115
if (sample.skipped) this.skip();
116-
console.log(`sample.cmd('')`, sample.cmd(''))
117-
// TODO JYC
118-
// this.test.title = sample.cmd('');
116+
if (err instanceof Error) {
117+
err.message = `${sample.cmd('')}\n${err.message}`;
118+
}
119119
throw err;
120120
}
121121
});

0 commit comments

Comments
 (0)