Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/kml
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2020-07-14 12:50:02 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2020-07-14 12:51:25 +0300
commitffed8eb0c26f7c99dab151f62094b98ef6aceef8 (patch)
tree7764f80b60c6ad47d8889011f691a7d07ae99673 /kml
parent7dc2ee27f1675130813c301a9684957c75377a83 (diff)
[pykmlib] Review fixes.
Diffstat (limited to 'kml')
-rw-r--r--kml/pykmlib/bindings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kml/pykmlib/bindings.cpp b/kml/pykmlib/bindings.cpp
index a57a05a72e..3e564fce26 100644
--- a/kml/pykmlib/bindings.cpp
+++ b/kml/pykmlib/bindings.cpp
@@ -103,7 +103,7 @@ struct LocalizableStringAdapter
{
auto const langIndex = StringUtf8Multilang::GetLangIndex(lang);
if (langIndex == StringUtf8Multilang::kUnsupportedLanguageCode)
- throw std::runtime_error("Unsupported language. lang:" + lang);
+ throw std::runtime_error("Unsupported language. lang: " + lang);
str[langIndex] = extract<std::string>(dict[lang]);
}
@@ -648,7 +648,7 @@ uint32_t ClassificatorTypeToIndex(std::string const & typeStr)
auto const type = c.GetTypeByReadableObjectName(typeStr);
if (!c.IsTypeValid(type))
- throw std::runtime_error("Type is not valid. typeStr:" + typeStr);
+ throw std::runtime_error("Type is not valid. typeStr: " + typeStr);
return c.GetIndexForType(type);
}