commit | dac2663c7ec47b7cba32e93d0d224ef704ad5436 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 14:38:47 2021 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 14:38:47 2021 -0500 |
tree | 9b4a9423e863d251a2dac1e8dd05ffd71e519e79 | |
parent | 74c1e7d8c50175017306e347532c8d7e98dc66d5 [diff] |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6b8b02a80cc28bfc63428e999de5b2645ffe4cf0
diff --git a/virtualSensor.cpp b/virtualSensor.cpp index b81201e..2efd867 100644 --- a/virtualSensor.cpp +++ b/virtualSensor.cpp
@@ -794,7 +794,7 @@ * exists */ this->matches.emplace_back(std::move(matchOnRemove)); } - catch (std::invalid_argument& ia) + catch (const std::invalid_argument& ia) { error("Failed to set up virtual sensor: {ERROR}", "ERROR", ia); }