app/controllers/easymon/checks_controller.rb in easymon-1.4 vs app/controllers/easymon/checks_controller.rb in easymon-1.4.1
- old
+ new
@@ -15,11 +15,11 @@
before_action :authorize_request
rescue_from Easymon::NoSuchCheck do |e|
respond_to do |format|
- format.any(:text, :html) { render_result e.message, :not_found }
- format.json { render :json => e.message, :status => :not_found }
+ format.any(:text, :html) { render_result "Check Not Found", :not_found }
+ format.json { render :json => "Check Not Found", :status => :not_found }
end
end
def index
checklist = Easymon::Repository.all