[dss-commits] r8857 - dss/trunk/core/sim
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Thu Oct 22 16:11:07 CEST 2009
Author: pstaehlin
Date: 2009-10-22 16:11:07 +0200 (Thu, 22 Oct 2009)
New Revision: 8857
Modified:
dss/trunk/core/sim/dsid_js.cpp
Log:
Avoid crashing if a simulated device returns an invalid DSID
Modified: dss/trunk/core/sim/dsid_js.cpp
===================================================================
--- dss/trunk/core/sim/dsid_js.cpp 2009-10-22 12:35:09 UTC (rev 8856)
+++ dss/trunk/core/sim/dsid_js.cpp 2009-10-22 14:11:07 UTC (rev 8857)
@@ -320,7 +320,7 @@
dsid_t dsid = dsid_t::fromString(dsidString);
DSLinkInterrupSender* sender = new DSLinkInterrupSender(dsid, ext);
sender->run();
- } catch(std::runtime_error&) {
+ } catch(std::invalid_argument&) {
Logger::getInstance()->log("Could not parse DSID");
}
More information about the dss-commits
mailing list