Skip to content

Commit abd8bd2

Browse files
committed
minor tweaks
1 parent c9c00d6 commit abd8bd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/throws-helper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ module.exports = function throwsHelper(error) {
88
if (!error || !error._avaThrowsHelperData) {
99
return;
1010
}
11+
1112
var data = error._avaThrowsHelperData;
1213
var codeFrame = require('babel-code-frame');
1314
var frame = '';
15+
1416
try {
1517
var rawLines = fs.readFileSync(data.filename, 'utf8');
1618
frame = codeFrame(rawLines, data.line, data.column, {highlightCode: true});
1719
} catch (e) {
1820
console.warn(e);
19-
console.warn(e);
2021
}
22+
2123
console.error(
2224
[
2325
'Improper usage of t.throws detected at ' + chalk.bold.yellow('%s (%d:%d)') + ':',

0 commit comments

Comments
 (0)