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 77a4d929..21612a0f 100644
--- a/quotes.cc
+++ b/quotes.cc
@@ -75,9 +75,9 @@ void quotes_by_script::operator()(commodity_base_t& commodity,
<< " " << price << endl;
}
} else {
- throw error(std::string("Failed to download price for '") +
- commodity.symbol + "' (command: \"getquote " +
- commodity.symbol + "\")");
+ throw new error(std::string("Failed to download price for '") +
+ commodity.symbol + "' (command: \"getquote " +
+ commodity.symbol + "\")");
}
}