aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2024-01-20 14:27:50 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2024-01-20 14:27:50 +0100
commit73f57c5933e4199a239389fb671e1babe7ff6cc4 (patch)
tree7cd4926adffbeb5288b2e590d78704203b9c799b /src/check_expr.cpp
parent2071d7ba84407e8cf0bebd6649247f3616618221 (diff)
Clarify #location error message when not a call.
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 8d347bec7..bc7ff1bbb 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -7895,7 +7895,7 @@ gb_internal ExprKind check_basic_directive_expr(CheckerContext *c, Operand *o, A
} else {
if (name == "location") {
init_core_source_code_location(c->checker);
- error(node, "'#%.*s' must be used in a call expression", LIT(name));
+ error(node, "'#location' must be used as a call, i.e. #location(proc), where #location() defaults to the procedure in which it was used.");
o->type = t_source_code_location;
o->mode = Addressing_Value;
} else if (