From: Uwe Hermann Date: Mon, 11 Nov 2013 06:53:52 +0000 (+0100) Subject: error.c: Add SR_ERR_PROBE_GROUP handling. X-Git-Tag: libsigrok-0.3.0~567 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3220827c57d6c3970b925303000dca095d6cf900;p=libsigrok.git error.c: Add SR_ERR_PROBE_GROUP handling. --- diff --git a/error.c b/error.c index 7d991fdb..a04a983f 100644 --- 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"; }