Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit b4a84ef

Browse files
committed
Change an error message
1 parent 37a3ae3 commit b4a84ef

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/bind.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ namespace Sass {
5757
}
5858
}
5959
std::stringstream msg;
60-
msg << "wrong number of arguments (" << LA << " for " << LP << ")";
61-
msg << " for `" << name << "'";
60+
msg << "Only " << LP << " ";
61+
msg << (LP <= 1 ? "argument" : "arguments");
62+
msg << " allowed, but " << LA << " ";
63+
msg << (LA <= 1 ? "was" : "were");
64+
msg << " passed.";
6265
return error(msg.str(), as->pstate(), traces);
6366
}
6467
Parameter_Obj p = ps->at(ip);

src/util_string.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define SASS_UTIL_STRING_H
33

44
#include "sass.hpp"
5+
#include <algorithm>
56
#include <vector>
67

78
namespace Sass {

0 commit comments

Comments
 (0)