diff options
author | Bradley Smith | 2008-03-08 22:54:23 +0000 |
---|---|---|
committer | Bradley Smith | 2008-03-08 22:54:23 +0000 |
commit | 99080bd960207a217ddd28bfefde6ffb867c426f (patch) | |
tree | 536e0269de5fb2820c4e8396b9ffffcfac11dca4 /src | |
parent | Add -g to compile flags. (diff) | |
download | gnurobots-99080bd960207a217ddd28bfefde6ffb867c426f.tar.gz |
Add error message when given an invalid instruction.
Add initial ui update to avoid corruption.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -347,6 +347,7 @@ main_prog (void *closure, gint argc, gchar *argv[]) SCM value; g_printf ("Robot program not specified. Entering interactive mode..\n"); + user_interface_update_status (ui, "", -1, -1, -1); while (1) { user_interface_get_string (ui, "guile> ", buff, BUFF_LEN); @@ -368,7 +369,9 @@ main_prog (void *closure, gint argc, gchar *argv[]) SCM catch_handler (void *data, SCM tag, SCM throw_args) { - gchar *message = "Could'nt get error message\n"; + +/* + gchar *message = "Couldn't get error message\n"; if (scm_ilength (throw_args) > 1 && SCM_NFALSEP (scm_string_p (SCM_CADR (throw_args)))) @@ -382,6 +385,9 @@ catch_handler (void *data, SCM tag, SCM throw_args) } user_interface_update_status (ui, message, -1, -1, -1); +*/ + + g_printf("Invalid Instruction\n"); return SCM_BOOL_F; } |