mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Examples: Add more error reporting
This commit is contained in:
committed by
Kyle Schwarz
parent
c466d75dae
commit
5620c98eda
@@ -406,6 +406,9 @@ int main(int argc, char** argv) {
|
||||
|
||||
if(it == devices.end()) {
|
||||
std::cerr << "Could not find RAD-A2B." << std::endl;
|
||||
auto lastError = icsneo::GetLastError();
|
||||
if(lastError.getType() != icsneo::APIEvent::Type::NoErrorFound)
|
||||
std::cerr << lastError << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user