Skip to content

Commit f51b39c

Browse files
committed
More helpful error message
1 parent 3c993e4 commit f51b39c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/muse/carbon_budget.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ def bisection(
407407
message = (
408408
f"Carbon budget could not be matched for the year {int(future)} to within "
409409
"the specified tolerance. "
410-
"Try increasing the tolerance or sample size."
410+
"This can often occur due to a stepwise emissions landscape "
411+
"which can make the budget unreachable, but can sometimes be "
412+
"fixed by increasing max_iterations or early_termination_count."
411413
)
412414
getLogger(__name__).warning(message)
413415
return new_price

0 commit comments

Comments
 (0)