Skip to content

Commit cb9f28c

Browse files
authored
Merge pull request #2405 from mgreter/hotfix/invalid-error-indicator
Hotfix issue with invalid error indicator (#2404)
2 parents 9f434ed + 029bd15 commit cb9f28c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,6 +2957,8 @@ namespace Sass {
29572957
size_t right_subpos = right.size() > 15 ? right.size() - 15 : 0;
29582958
if (left_subpos && ellipsis_left) left = ellipsis + left.substr(left_subpos);
29592959
if (right_subpos && ellipsis_right) right = right.substr(right_subpos) + ellipsis;
2960+
// Hotfix when source is null, probably due to interpolation parsing!?
2961+
if (source == NULL || *source == 0) source = pstate.src;
29602962
// now pass new message to the more generic error function
29612963
error(msg + prefix + quote(left) + middle + quote(right), pstate);
29622964
}

0 commit comments

Comments
 (0)