Skip to content
Snippets Groups Projects
Verified Commit 8ab29a7f authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Made error output cleaner

parent c8c8f39d
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ module Apex
hops.each do |hop|
raise ArgumentError.new("All arguments must not be nil: #{hops.to_s}") if (hop.nil?)
raise ArgumentError.new("All arguments must be of type Hop: #{hops.class.to_s}") if not hop.kind_of? Apex::Hop
raise ArgumentError.new("A seen hop can not follow an unseen hop: #{hops.to_s}") if (hop.seen?) && (!last_seen)
raise ArgumentError.new("A seen hop can not follow an unseen hop: #{hops.join(',').to_s}") if (hop.seen?) && (!last_seen)
last_seen = false if not hop.seen?
@path_array << hop
end
......
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