diff options
author | Rob <rob.manea@gmail.com> | 2009-12-03 19:00:07 +0100 |
---|---|---|
committer | Rob <rob.manea@gmail.com> | 2009-12-03 19:00:07 +0100 |
commit | 24d8b632eaa7e9622603fbd58cd4bc360f965dd8 (patch) | |
tree | 18435c6692a451a15a99170d389a0e90c1c042e9 /uzbl-core.c | |
parent | b61c04fd5af9747e2b868ed6d47d86a75e4baa2d (diff) |
generate COMMAND_ERROR if script file cannot be read
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 2e5e14e..85330b9 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -394,7 +394,9 @@ read_file_by_line (const gchar *path) { g_io_channel_unref (chan); } else { - fprintf(stderr, "File '%s' not be read.\n", path); + gchar *tmp = g_strdup_printf("File %s can not be read.", path); + send_event(COMMAND_ERROR, tmp, NULL); + g_free(tmp); } return lines; |