Skip to content

Commit cd62b66

Browse files
committed
error warn updates
1 parent fe2f492 commit cd62b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chemistry_functionality.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function balance_reaction(reaction::Reaction)
259259
end
260260

261261
isempty(balancedrxs) && (@warn "Unable to balance reaction.")
262-
(length(balancedrxs) > 1) && (@warn "Infinite balanced reactions from ($reaction) are possible, returning a basis for them. Note that we do not check if they preserve the set of substrates and products from the original reaction.")
262+
(length(balancedrxs) > 1) && (@warn "The space of possible balanced versions of the reaction ($reaction) is greater than 1. This prevents the selection of a single appropriate balanced reaction. Instead, a basis for balanced reactions is returned. Note that we do not check if they preserve the set of substrates and products from the original reaction.")
263263
return balancedrxs
264264
end
265265

@@ -381,7 +381,7 @@ function get_balanced_reaction(rx::Reaction)
381381
error("Could not balance reaction `$rx`, unable to create a balanced `ReactionSystem`.")
382382
end
383383
if length(brxs) > 1
384-
error("Infinite number of balanced reactions possible for reaction ($rx) are possible. No method for automatically generating a valid reaction is currently implemented in `balance_system`.")
384+
error("The space of possible balanced versions of the reaction ($reaction) is greater than 1. This prevents the selection of a single appropriate balanced reaction. No method to, in this case, automatically generate a valid reaction is currently implemented in `balance_system`.")
385385
end
386386

387387
return only(brxs)

0 commit comments

Comments
 (0)