Module: Kernel

Defined in:
lib/glue.rb

Instance Method Summary collapse

Instance Method Details

#pp_exception(ex) ⇒ Object

Pretty prints an exception/error object usefull for helpfull debug messages

Input: The Exception/StandardError object

Output: the pretty printed string



50
51
52
# File 'lib/glue.rb', line 50

def pp_exception(ex)
	return %{#{ex.message}\n\tBACKTRACE:\n\t#{ex.backtrace.join("\n\t")}\n\tLOGGED FROM:\n\t#{caller[0]}}
end