Skip to content

Commit

Permalink
Extra ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
wichtounet committed Jan 4, 2025
1 parent 65a5503 commit 45dcc9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/share.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ budget::money budget::share_price(const std::string& ticker){
}

budget::money budget::share_price(const std::string& ticker, budget::date d){
if (d > budget::local_day()) {
LOG_F(ERROR,
"Asking for a share price {} in the future ({}), this should not happen",
ticker,
budget::to_string(d));
}

auto date = get_valid_date(d);

const share_price_cache_key key(date, ticker);
Expand Down

0 comments on commit 45dcc9e

Please sign in to comment.