aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 44aa130..bd8c359 100644
--- a/src/core.c
+++ b/src/core.c
@@ -19,7 +19,7 @@ static char *read_file(const char *fname, FILE *f)
long s = ftell(f);
if (s == LONG_MAX) {
/** @todo should probably do this via fstat or something */
- error("%s might be a directory", fname);
+ fprintf(stderr, "%s might be a directory", fname);
return NULL;
}
@@ -44,7 +44,7 @@ int run(const char *fname)
FILE *f = fopen(fname, "rb");
if (!f) {
- error("failed opening %s: %s\n", fname, strerror(errno));
+ fprintf(stderr, "failed opening %s: %s\n", fname, strerror(errno));
return -1;
}