From 4a566875fdf154bf0e665e8942d188e434604f7d Mon Sep 17 00:00:00 2001 From: Hinko Kocevar Date: Wed, 13 Jul 2016 11:10:26 +0200 Subject: [PATCH] Provide descriptive error message for not supported features. --- andorApp/src/andorCCD.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/andorApp/src/andorCCD.cpp b/andorApp/src/andorCCD.cpp index 275ff1b..7aa5129 100755 --- a/andorApp/src/andorCCD.cpp +++ b/andorApp/src/andorCCD.cpp @@ -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);