summaryrefslogtreecommitdiff
path: root/error_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'error_utils.c')
-rw-r--r--error_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/error_utils.c b/error_utils.c
index 815d039..37908e7 100644
--- a/error_utils.c
+++ b/error_utils.c
@@ -39,6 +39,7 @@ void set_gpib_error_flags (int error_num)
case SyntaxError:
case UnknownUnits:
case InvalidChannel:
+ case ThisShouldntHappen:
GPIB_Set_Command_Error();
break;
case query_error_interrupted:
@@ -499,6 +500,9 @@ void get_error_text(gchar **response, int error_num)
format_error_text(response,-240,"Network not found.");
break;
+ case ThisShouldntHappen:
+ format_error_text(response,-200,"Invalid execution path. Programming error.");
+ break;
default:
format_error_text(response,-200,"Specific problem unknown.");