Skip to content

Commit 2c5f97a

Browse files
committed
Backtrace lines are off-by-one
1 parent 815c03b commit 2c5f97a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backtrace.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ namespace Sass {
4141
<< "\t"
4242
<< (++i == 0 ? "on" : "from")
4343
<< " line "
44-
<< this_point->pstate.line
44+
<< this_point->pstate.line + 1
4545
<< " of "
4646
<< rel_path;
4747
} else {
4848
ss << endl
4949
<< "\t"
5050
<< rel_path
5151
<< ":"
52-
<< this_point->pstate.line
52+
<< this_point->pstate.line + 1
5353
<< this_point->parent->caller;
5454
}
5555

0 commit comments

Comments
 (0)