catch only NameException and log error in content server
Change-Id: I600d52d6cee98b80547c5b395442351e0c3350de
diff --git a/src/content-server.cc b/src/content-server.cc
index ceb971d..a7cb807 100644
--- a/src/content-server.cc
+++ b/src/content-server.cc
@@ -117,9 +117,10 @@
}
}
}
- catch (...)
+ catch (Ccnx::NameException ne)
{
// ignore any unexpected interests and errors
+ _LOG_ERROR(boost::get_error_info<Ccnx::error_info_str>(ne));
}
}
@@ -137,9 +138,10 @@
filterAndServeImpl (forwardingHint, interest.getPartialName (forwardingHint.size()), interest); // always try with hint... :( have to
}
- catch (...)
+ catch (Ccnx::NameException ne)
{
// ignore any unexpected interests and errors
+ _LOG_ERROR(boost::get_error_info<Ccnx::error_info_str>(ne));
}
}