mirror of https://github.com/aria2/aria2
Use Exception::getErrorCode() in main() instead of error_code::UNKNOWN_ERROR
unconditionally.pull/1/head
parent
f5efdd9413
commit
bc798ae4e6
|
@ -285,7 +285,7 @@ int main(int argc, char* argv[])
|
|||
r = aria2::main(argc, argv);
|
||||
} catch(aria2::Exception& ex) {
|
||||
std::cerr << EX_EXCEPTION_CAUGHT << "\n" << ex.stackTrace() << std::endl;
|
||||
r = aria2::error_code::UNKNOWN_ERROR;
|
||||
r = ex.getErrorCode();
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue