Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/leopard/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

module Rubyists
module Leopard
class Error < StandardError; end
class LeopardError < StandardError
def backtrace
super[0..3] + ['... (truncated by Leopard)']
end
end

class Error < LeopardError; end
class ConfigurationError < Error; end
class ResultError < Error; end
end
Expand Down