return :loaded
rescue Exception => err
# rescue TimeoutError, StandardError, NameError, LoadError, SyntaxError => err
- warning report_error("#{desc}#{fname} load failed", err)
+ error report_error("#{desc}#{fname} load failed", err)
bt = err.backtrace.select { |line|
line.match(/^(\(eval\)|#{fname}):\d+/)
}
if short
output << n_("%{highlight}%{count} plugin failed to load%{highlight}",
"%{highlight}%{count} plugins failed to load%{highlight}",
- @ignored.length) %
- { :count => @ignored.length, :highlight => Reverse }
+ @failed.length) %
+ { :count => @failed.length, :highlight => Reverse }
else
output << n_("%{highlight}%{count} plugin failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
"%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
- @ignored.length) %
- { :count => @ignored.length, :highlight => Reverse,
- :bold => Bold, :command => "#{Bold}help failed plugins#{Bold}"}
+ @failed.length) %
+ { :count => @failed.length, :highlight => Reverse,
+ :bold => Bold, :command => "help failed plugins"}
end
end
output.join '; '
# debug "Failures: #{@failed.inspect}"
return _("no plugins failed to load") if @failed.empty?
return @failed.collect { |p|
- _('%{highlight}%{plugin}%{highlight} in %{dir}failed with error %{exception}: %{reason}') % {
+ _('%{highlight}%{plugin}%{highlight} in %{dir} failed with error %{exception}: %{reason}') % {
:highlight => Bold, :plugin => p[:name], :dir => p[:dir],
:exception => p[:reason].class, :reason => p[:reason],
} + if $1 && !p[:reason].backtrace.empty?