diff options
Diffstat (limited to 'src/user/highway/cmds.c')
-rw-r--r-- | src/user/highway/cmds.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/user/highway/cmds.c b/src/user/highway/cmds.c index d7a89d1..0420ae1 100644 --- a/src/user/highway/cmds.c +++ b/src/user/highway/cmds.c @@ -1,12 +1,16 @@ +#include <terminal/terminal.h> + #include <knob/file.h> -#include <knob/user.h> + #include "line.h" #include "vars.h" void source(const char *path) { struct file *f = open_file(path); - if (!f) - tell_user_sz("couldn't open file.\n"); + if (!f) { + term_addf("Could not open %s.\n", path); + return; + } char buf[128]; while (read_line_from_file(f, buf, 127)) run_line(buf); |