commit 0752e2d45d5d97a1ac2a7436156695980da31947
parent 15b88ff54c62d428199ff6f5249b9e034bd81619
Author: William Casarin <jb55@jb55.com>
Date: Wed, 25 Oct 2017 20:14:10 -0700
script: stderr for errors
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/script.c b/script.c
@@ -10,7 +10,7 @@ static int stack_end(struct stack *stack) {
void script_add_error(const char *serror) {
// TODO: set_error
- printf("error: %s\n", serror);
+ fprintf(stderr, "error: %s\n", serror);
}
struct val