error.c: Add SR_ERR_PROBE_GROUP handling.

This commit is contained in:
Uwe Hermann 2013-11-11 07:53:52 +01:00
parent a0dc461d7b
commit 3220827c57
1 changed files with 4 additions and 0 deletions

View File

@ -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";
}