mirror of
https://github.com/fmang/opustags.git
synced 2025-03-13 16:10:08 +01:00
parent
0624376fcc
commit
4de88d0ed2
@ -4,6 +4,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <cstring>
|
||||
|
||||
static void show_usage(const bool include_help)
|
||||
{
|
||||
@ -76,7 +77,10 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
} catch (const std::exception &e) {
|
||||
std::cerr << e.what();
|
||||
if (errno)
|
||||
std::cerr << "fatal error: " << e.what() << " (" << strerror(errno) << ")" << std::endl;
|
||||
else
|
||||
std::cerr << "fatal error: " << e.what() << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user