Fix name in error emission

InvalidRedirectLocation -> InvalidRedirect
Merge pull request #1201 from joaosa/v0.10

Fix name in error emission