]> sigrok.org Git - libsigrok.git/commitdiff
error.c: Add SR_ERR_PROBE_GROUP handling.
authorUwe Hermann <redacted>
Mon, 11 Nov 2013 06:53:52 +0000 (07:53 +0100)
committerUwe Hermann <redacted>
Mon, 11 Nov 2013 06:53:52 +0000 (07:53 +0100)
error.c

diff --git a/error.c b/error.c
index 7d991fdbc11857f1b78986993552abde501097f1..a04a983fc8908313af6c13a9becd2b36745bf0de 100644 (file)
--- a/error.c
+++ b/error.c
@@ -76,6 +76,8 @@ SR_API const char *sr_strerror(int error_code)
                return "device closed but should be open";
        case SR_ERR_TIMEOUT:
                return "timeout occurred";
+       case SR_ERR_PROBE_GROUP:
+               return "no probe group specified";
        default:
                return "unknown error";
        }
@@ -125,6 +127,8 @@ SR_API const char *sr_strerror_name(int error_code)
                return "SR_ERR_DEV_CLOSED";
        case SR_ERR_TIMEOUT:
                return "SR_ERR_TIMEOUT";
+       case SR_ERR_PROBE_GROUP:
+               return "SR_PROBE_GROUP";
        default:
                return "unknown error code";
        }