mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Examples: Add more error reporting
This commit is contained in:
committed by
Kyle Schwarz
parent
c466d75dae
commit
5620c98eda
@@ -86,6 +86,9 @@ int main(int argc, const char** argv) {
|
||||
}
|
||||
if(!device) {
|
||||
std::cerr << "Failed to find device" << std::endl;
|
||||
auto lastError = icsneo::GetLastError();
|
||||
if(lastError.getType() != icsneo::APIEvent::Type::NoErrorFound)
|
||||
std::cerr << lastError << std::endl;
|
||||
std::cerr << usage;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user