# File lib/ruote/dashboard.rb, line 477 def errors(wfid=nil) wfid, options = wfid.is_a?(Hash) ? [ nil, wfid ] : [ wfid, {} ] errs = wfid.nil? ? @context.storage.get_many('errors', nil, options) : @context.storage.get_many('errors', wfid) return errs if options[:count] errs.collect { |err| ProcessError.new(err) } end