Provide descriptive error message for not supported features.

This commit is contained in:
Hinko Kocevar
2016-07-13 11:10:26 +02:00
parent 2d102d67dd
commit 4a566875fd

View File

@@ -850,6 +850,8 @@ unsigned int AndorCCD::checkStatus(unsigned int returnStatus)
throw std::string("ERROR: Problem communicating with camera.");
} else if (returnStatus == DRV_LOAD_FIRMWARE_ERROR) {
throw std::string("ERROR: Error loading firmware.");
} else if (returnStatus == DRV_NOT_SUPPORTED) {
throw std::string("ERROR: Feature not supported.");
} else {
sprintf(message, "ERROR: Unknown error code=%d returned from Andor SDK.", returnStatus);
throw std::string(message);