start to debug

This commit is contained in:
Torsten Ruger
2018-03-26 13:43:26 +03:00
parent 865a116f47
commit 633e99466d
3 changed files with 12 additions and 8 deletions

View File

@@ -11,7 +11,8 @@ module Positioned
if pos == nil
str = "position accessed but not set, "
str += "#{object.object_id.to_s(16)}\n"
raise str + "for #{object.class} byte_length #{object.byte_length if object.respond_to?(:byte_length)} for #{object.inspect[0...100]}"
str += "for #{object.class} byte_length #{object.byte_length if object.respond_to?(:byte_length)} for #{object.inspect[0...100]}"
raise str
end
pos
end