Skip to content

Commit

Permalink
Merge pull request #1678 from mgreter/bugfix/issue-1561
Browse files Browse the repository at this point in the history
Improve error message for duplicate keys
  • Loading branch information
mgreter committed Nov 7, 2015
2 parents a00f108 + 32dc95a commit d18808d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ namespace Sass {
// check the evaluated keys aren't duplicates.
if (mm->has_duplicate_key()) {
To_String to_string(&ctx);
error("Duplicate key \"" + mm->get_duplicate_key()->perform(&to_string) + "\" in map " + mm->perform(&to_string) + ".", mm->pstate());
error("Duplicate key \"" + mm->get_duplicate_key()->perform(&to_string) + "\" in map " + m->perform(&to_string) + ".", mm->pstate());
}

mm->is_expanded(true);
Expand Down

0 comments on commit d18808d

Please sign in to comment.