 fr = ir = null
 
-checkArgument = (arg) ->
+checkRouteOrPath = (arg) ->
   try
     check arg, Match.OneOf RegExp, String
   catch error
-    throw new Error errorMessages.invalidArgument
+    throw new Error errorMessages.invalidRouteNameArgument
 
 checkRouterPackages = ->
   fr = Package['kadira:flow-router'] ? Package['meteorhacks:flow-router']

    'No supported router installed. Please install ' +
    'iron:router or meteorhacks:flow-router.'

  invalidArgument: 'Invalid argument, must be String or RegExp.'

share.config = new ReactiveDict 'activeRouteConfig'
share.config.setDefault


    return if Meteor.isServer

    checkRouteOrPath path

    if ir
      controller = ir.Router.current()
