diff --git a/librepomgr/helper.h b/librepomgr/helper.h index 1b94eff..0cf8209 100644 --- a/librepomgr/helper.h +++ b/librepomgr/helper.h @@ -53,7 +53,7 @@ inline void convertValue(const std::multimap &multimap if (error) { cerr << Phrases::ErrorMessage << "Specified IP address \"" << value << "\" for key \"" << key << "\" is invalid" << Phrases::End << Phrases::SubError << error.message() << Phrases::End; - exit(-1); + return; } result = ip; } @@ -70,7 +70,7 @@ template <> inline void convertValue(const std::multimap(value); } catch (const ConversionException &) { cerr << Phrases::ErrorMessage << "Specified number \"" << value << "\" for key \"" << key << "\" is invalid." << Phrases::End; - exit(-1); + return; } } } @@ -93,7 +93,7 @@ template <> inline void convertValue(const std::multimap