Skip to content
Snippets Groups Projects
Verified Commit 152621b8 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Clarify error message

parent e4f501dd
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,8 @@ function walk_pathway!(seq::Sequence, walker::PathwayWalker, pulse_effects::Vect
while !(walk_pathway!(seq, walker, pulse_effects, nreadout, current_TR * TR(seq)))
new_nwait = length(pulse_effects) + nreadout[]
if nwait == new_nwait
error("Pathway iterated through the whole sequence without seeing a valid pulse or readout. Terminating...")
not_seen = iszero(length(pulse_effects)) ? "readout" : "pulse"
error("Pathway iterated through the whole sequence without seeing a valid $not_seen. Terminating...")
end
nwait = new_nwait
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment