mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[price-quotes] Throw instead of returning if there aren't any commodities to quote.
So that the user gets sees an error instead of silent failure.
This commit is contained in:
parent
81d4ea9550
commit
7d93774dd2
@ -303,7 +303,7 @@ GncQuotesImpl::fetch (CommVec& commodities)
|
|||||||
{
|
{
|
||||||
m_failures.clear();
|
m_failures.clear();
|
||||||
if (commodities.empty())
|
if (commodities.empty())
|
||||||
return;
|
throw (GncQuoteException(bl::translate("GncQuotes::Fetch called with no commodities.")));
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
auto quote_str{query_fq (commodities)};
|
auto quote_str{query_fq (commodities)};
|
||||||
|
Loading…
Reference in New Issue
Block a user