lib/ballast/concerns/errors_handling.rb in ballast-1.5.2 vs lib/ballast/concerns/errors_handling.rb in ballast-1.5.3

- old
+ new

@@ -41,15 +41,15 @@ def send_or_render_error(layout, format = nil) format ||= request.format.to_sym if is_ajax? || format.to_s =~ /^json/ then details = {type: @error_title} - details[:backtrace] = @error.backtrace.join("\n") if @error.respond_to?(:backtrace) + details[:backtrace] = @error.backtrace if @error.respond_to?(:backtrace) data = prepare_ajax(@error_code, details, @error_message || @error.message) send_ajax(data, format: format) else render(nothing: true, status: @error_code, layout: layout, formats: [:html]) end end end end -end \ No newline at end of file +end