Method: Uinit::Type::Error#message
- Defined in:
- lib/uinit/type/error.rb
#message ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/uinit/type/error.rb', line 23 def msg = msg = if types.size == 1 "#{msg}\nType: #{types.first}" else "#{msg}\nTypes:\n #{types * "\n "}" end msg = "#{msg}\nTraces: #{traces.join}" unless traces.empty? msg = "#{msg}\nValue: #{value.inspect}" if value msg end |