Catch exceptions by reference

This commit is contained in:
Mike Oliphant
2023-07-12 09:50:27 -07:00
parent c990eedf33
commit d4482b3b14
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ namespace NAM {
memcpy(response.path, msg->path, pathlen);
}
catch (std::exception)
catch (const std::exception&)
{
response.path[0] = '\0';