Making references of exception variables
Change-Id: I9b18dfc2535a6eaf30654fb80a9111358076a141
diff --git a/src/content-server.cc b/src/content-server.cc
index a7cb807..df2b296 100644
--- a/src/content-server.cc
+++ b/src/content-server.cc
@@ -117,7 +117,7 @@
}
}
}
- catch (Ccnx::NameException ne)
+ catch (Ccnx::NameException &ne)
{
// ignore any unexpected interests and errors
_LOG_ERROR(boost::get_error_info<Ccnx::error_info_str>(ne));
@@ -138,7 +138,7 @@
filterAndServeImpl (forwardingHint, interest.getPartialName (forwardingHint.size()), interest); // always try with hint... :( have to
}
- catch (Ccnx::NameException ne)
+ catch (Ccnx::NameException &ne)
{
// ignore any unexpected interests and errors
_LOG_ERROR(boost::get_error_info<Ccnx::error_info_str>(ne));