summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2009-12-22 20:48:57 +0100
committerJohannes Weiner <hannes@cmpxchg.org>2009-12-22 20:48:57 +0100
commit264bfe2c43d20825f56a6feed379ef5717d0c5dc (patch)
tree1153b3e1d1929a324616e4319af52b1394d6f82e
parent9794dd199207ac9c4601f557eb19e566e6e8ab02 (diff)
core: use common error reporting in (load)
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
-rw-r--r--sheep/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sheep/core.c b/sheep/core.c
index b54aaca..217057e 100644
--- a/sheep/core.c
+++ b/sheep/core.c
@@ -401,7 +401,8 @@ static int compile_load(struct sheep_compile *compile,
sheep_t mod;
if (context->parent) {
- fprintf(stderr, "load: not on toplevel\n");
+ sheep_compiler_error(compile, args->head,
+ "load: not on toplevel");
return -1;
}