diff --git a/lib/apex/frame/immutable_path.rb b/lib/apex/frame/immutable_path.rb index aa9ff1c1dd36050411d883c7b69208379766e213..9656db4f81846b375fd28874bd0a54c0255ce52e 100644 --- a/lib/apex/frame/immutable_path.rb +++ b/lib/apex/frame/immutable_path.rb @@ -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") if (hop.seen?) && (!last_seen) + raise ArgumentError.new("A seen hop can not follow an unseen hop: #{{hops.to_s}}") if (hop.seen?) && (!last_seen) last_seen = false if not hop.seen? @path_array << hop end