Skip to content

Commit f365f5a

Browse files
author
Felix Exner (fexner)
authored
Catch Exception by reference and not by value (#130)
In general this is a good idea and it will silence a compiler warning.
1 parent 79ce33c commit f365f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ur/dashboard_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bool DashboardClient::connect()
6262
ret_val = true;
6363
}
6464
}
65-
catch (TimeoutException)
65+
catch (const TimeoutException&)
6666
{
6767
URCL_LOG_WARN("Did not receive dashboard bootup message although connection was established. This should not "
6868
"happen, please contact the package maintainers. Retrying anyway...");

0 commit comments

Comments
 (0)