提交 715dd109 编写于 作者: J Joshua Peek

Less annoying RoutingError message

上级 f82e1046
......@@ -5,7 +5,7 @@ module ActionDispatch
module Routing
class RouteSet #:nodoc:
NotFound = lambda { |env|
raise ActionController::RoutingError, "No route matches #{env['PATH_INFO'].inspect} with #{env.inspect}"
raise ActionController::RoutingError, "No route matches #{env['PATH_INFO'].inspect}"
}
PARAMETERS_KEY = 'action_dispatch.request.path_parameters'
......@@ -426,7 +426,7 @@ def recognize_path(path, environment = {})
end
end
raise ActionController::RoutingError, "No route matches #{path.inspect} with #{environment.inspect}"
raise ActionController::RoutingError, "No route matches #{path.inspect}"
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册