Skip to content

Commit

Permalink
Improve error message for duplicate keys
Browse files Browse the repository at this point in the history
Fixes sass#1561
  • Loading branch information
mgreter committed Nov 1, 2015
1 parent f89e8d7 commit 32dc95a
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 @@ -446,7 +446,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 32dc95a

Please sign in to comment.