diff options
author | Maxim Pimenov <m@maps.me> | 2018-07-24 15:22:21 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2018-07-25 18:49:59 +0300 |
commit | abc28557e2cff5d6298489f370d8dd95bbba32ed (patch) | |
tree | a41ffa5cb3b2a5fe749ab85fd08beefef5d6c1a5 /editor | |
parent | 845af4ae26f41e86d2db9399420c19ec04b43d05 (diff) |
Review fixes.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/xml_feature.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/xml_feature.cpp b/editor/xml_feature.cpp index abccd00938..cb3e13017e 100644 --- a/editor/xml_feature.cpp +++ b/editor/xml_feature.cpp @@ -3,6 +3,7 @@ #include "indexer/classificator.hpp" #include "indexer/feature.hpp" +#include "base/exception.hpp" #include "base/macros.hpp" #include "base/string_utils.hpp" #include "base/timer.hpp" @@ -36,11 +37,15 @@ ms::LatLon GetLatLonFromNode(pugi::xml_node const & node) { ms::LatLon ll; if (!strings::to_double(node.attribute("lat").value(), ll.lat)) + { MYTHROW(editor::NoLatLon, - ("Can't parse lat attribute: " + string(node.attribute("lat").value()))); + ("Can't parse lat attribute:", string(node.attribute("lat").value()))); + } if (!strings::to_double(node.attribute("lon").value(), ll.lon)) + { MYTHROW(editor::NoLatLon, - ("Can't parse lon attribute: " + string(node.attribute("lon").value()))); + ("Can't parse lon attribute:", string(node.attribute("lon").value()))); + } return ll; } |