commit | 67554144bf95f9b65966468075104905a0118586 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 13:00:15 2021 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 13:13:50 2021 -0500 |
tree | 22e5b5f80f2775f736ae7496cdd79ad9e3cf6909 | |
parent | f28e7bea7494fa18ddc0e14db5e33efdaf7d7940 [diff] |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib9f55b5a26f9a48838759cfaef73c44181242ac6
diff --git a/gpio-util/main.cpp b/gpio-util/main.cpp index 0cfacf4..82cbed4 100644 --- a/gpio-util/main.cpp +++ b/gpio-util/main.cpp
@@ -177,7 +177,7 @@ { function->second(gpio, delay); } - catch (std::runtime_error& e) + catch (const std::runtime_error& e) { std::cerr << e.what(); return -1;