summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.cc b/config.cc
index 0dff2a47..8e86c5a2 100644
--- a/config.cc
+++ b/config.cc
@@ -392,7 +392,7 @@ OPT_BEGIN(set_price, "z:") {
if (std::strchr(optarg, '='))
config.price_settings.push_back(optarg);
else
- std::cerr << "Error: Invalid price setting: " << optarg << std::endl;
+ throw error(std::string("Invalid price setting: ") + optarg);
} OPT_END(set_price);
OPT_BEGIN(account, "a:") {