maybe we should outsource this to a method. the message is about the same in both places, but not exactly ("Route $name not found" versus "No route $name found".)