Change error name on invalid cookie

This commit is contained in:
jaina heartles 2022-11-18 03:37:42 -08:00
parent fdf0a84593
commit ea837f78bd

View file

@ -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);