summaryrefslogtreecommitdiff
path: root/quotes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'quotes.cc')
-rw-r--r--quotes.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/quotes.cc b/quotes.cc
index e2ff97c8..bc6e5840 100644
--- a/quotes.cc
+++ b/quotes.cc
@@ -68,9 +68,9 @@ void quotes_by_script::operator()(commodity_base_t& commodity,
<< " " << commodity.symbol << " " << price << endl;
}
} else {
- throw new error(string("Failed to download price for '") +
- commodity.symbol + "' (command: \"getquote " +
- commodity.symbol + "\")");
+ throw_(std::runtime_error,
+ "Failed to download price for '" << commodity.symbol
+ << "' (command: \"getquote " << commodity.symbol << "\")");
}
}
#endif