Missed a pair of catch statements for formatting.
This commit is contained in:
parent
a9c34779f6
commit
cc2b33649d
1 changed files with 2 additions and 4 deletions
|
@ -951,11 +951,9 @@ int main(int argc, char** argv)
|
|||
char buf[BUFSIZ];
|
||||
try {
|
||||
std::rethrow_exception(std::move(ep));
|
||||
}
|
||||
catch (std::exception& e) {
|
||||
} catch (std::exception& e) {
|
||||
snprintf(buf, sizeof(buf), fmt, e.what());
|
||||
}
|
||||
catch (...) {
|
||||
} catch (...) {
|
||||
snprintf(buf, sizeof(buf), fmt, "Unknown Exception");
|
||||
}
|
||||
res.set_content(buf, "text/plain");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue