Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

PathString argument exception that doesn't start with '/' should say so... #406

Closed
HaoK opened this issue Sep 16, 2015 · 1 comment
Closed

Comments

@HaoK
Copy link
Member

HaoK commented Sep 16, 2015

                app.Map("always", map => { });

This currently gives you an extremely useless ArgumentException:

  System.ArgumentException :
  Parameter name: value
  Stack Trace:
       at Microsoft.AspNet.Http.PathString..ctor(String value)
       at Microsoft.AspNet.Http.PathString.op_Implicit(String s)

This should say PathStrings should start with '/' or something. I hit this when using Map

@Tratcher
Copy link
Member

#251

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants