We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca30713 commit 85ef38bCopy full SHA for 85ef38b
examples/arioso/arioso.cpp
@@ -268,7 +268,11 @@ int main( int argc, char** argv )
268
269
// Open existing library or create a new one. In the last case, the library will be empty.
270
ario archive;
271
- archive.load( opts.archive_name );
+ const auto result = archive.load( opts.archive_name );
272
+ if ( !result.ok() ) {
273
+ std::cerr << "Error loading archive: " << result.what() << std::endl;
274
+ return 1;
275
+ }
276
277
// Extract members from the archive
278
int retVal = extract_members( opts, archive );
0 commit comments