error.c: Add SR_ERR_PROBE_GROUP handling.
This commit is contained in:
parent
a0dc461d7b
commit
3220827c57
4
error.c
4
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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue