Skip to content

Commit cb32304

Browse files
committed
Change error message
1 parent b4a84ef commit cb32304

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fn_miscs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ namespace Sass {
213213
{
214214
String_Constant* ss = Cast<String_Constant>(env["$name"]);
215215
if (!ss) {
216-
error("$name: " + (env["$name"]->to_string()) + " is not a string for `get-function'", pstate, traces);
216+
error("$name: " + (env["$name"]->to_string()) + " is not a string.", pstate, traces);
217217
}
218218

219219
std::string name = unquote(ss->value());

src/fn_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace Sass {
4141
{
4242
T* val = Cast<T>(env[argname]);
4343
if (!val) {
44-
error("argument `" + argname + "` of `" + sig + "` must be a " + T::type_name(), pstate, traces);
44+
error(argname + " is not a " + T::type_name(), pstate, traces);
4545
}
4646
return val;
4747
}

0 commit comments

Comments
 (0)