commit | 26601e8919552a52bd8b23aa85fac30088f03303 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 12:43:25 2021 -0500 |
committer | Ed Tanous <ed@tanous.net> | Thu Oct 07 15:43:19 2021 +0000 |
tree | bdec8ba9c2c2c08ec1e0239ed69ec2616f45d2cf | |
parent | a040ec4013d2deb544fed4b1453d51a35fc26499 [diff] [blame] |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9e474f2b3e936b9961eaa08693744c466736e768
diff --git a/src/ADCSensorMain.cpp b/src/ADCSensorMain.cpp index c3239c2..eea2766 100644 --- a/src/ADCSensorMain.cpp +++ b/src/ADCSensorMain.cpp
@@ -367,7 +367,7 @@ { index = std::stoi(path.substr(path.size() - 1)); } - catch (std::invalid_argument&) + catch (const std::invalid_argument&) { std::cerr << "Found invalid path " << path << "\n"; return;