mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
constify missing catch cases
- ensure all missing catch cases are constant where possible
This commit is contained in:
parent
8f3b3cdee4
commit
ad5aae15b4
4 changed files with 5 additions and 5 deletions
|
|
@ -109,7 +109,7 @@ bool AppInit(int argc, char* argv[])
|
|||
// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
|
||||
try {
|
||||
SelectParams(ChainNameFromCommandLine());
|
||||
} catch(std::exception &e) {
|
||||
} catch (const std::exception& e) {
|
||||
fprintf(stderr, "Error: %s\n", e.what());
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue