Change error name on invalid cookie
This commit is contained in:
parent
fdf0a84593
commit
ea837f78bd
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ pub fn Context(comptime Route: type) type {
|
|||
if (try req.headers.getCookie(cookie_name)) |token_hdr| {
|
||||
break :conn try api_source.connectToken(host, token_hdr, alloc);
|
||||
}
|
||||
} else return error.InvalidToken;
|
||||
} else return error.InvalidCookie;
|
||||
}
|
||||
|
||||
break :conn try api_source.connectUnauthorized(host, alloc);
|
||||
|
|
Loading…
Reference in a new issue