     'No supported router installed. Please install ' +
     'iron:router or meteorhacks:flow-router.'
 
-  invalidArgument: 'Invalid argument, must be String or RegExp.'
+  invalidRouteNameArgument: 'Invalid argument, must be String or RegExp.'
 
 share.config = new ReactiveDict 'activeRouteConfig'
 share.config.setDefault

fr = ir = null

checkArgument = (arg) ->
  try
    check arg, Match.OneOf RegExp, String
  catch error
    throw new Error errorMessages.invalidArgument

checkRouterPackages = ->
  fr = Package['kadira:flow-router'] ? Package['meteorhacks:flow-router']


    return if Meteor.isServer

    checkRouteOrPath routeName

    if ir
      currentRouteName = ir.Router.current()?.route?.getName?()
