Skip to content

Commit

Permalink
Hotfix issue with invalid error indicator (sass#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed May 30, 2017
1 parent 9f434ed commit 029bd15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,8 @@ namespace Sass {
size_t right_subpos = right.size() > 15 ? right.size() - 15 : 0;
if (left_subpos && ellipsis_left) left = ellipsis + left.substr(left_subpos);
if (right_subpos && ellipsis_right) right = right.substr(right_subpos) + ellipsis;
// Hotfix when source is null, probably due to interpolation parsing!?
if (source == NULL || *source == 0) source = pstate.src;
// now pass new message to the more generic error function
error(msg + prefix + quote(left) + middle + quote(right), pstate);
}
Expand Down

0 comments on commit 029bd15

Please sign in to comment.