Stopping sending literal errors
Errors now must be of "Error" type. Rule added in eslint.
This commit is contained in:
@@ -27,7 +27,7 @@ export class OpenIdProfileController extends BaseController {
|
||||
try {
|
||||
const resCheckTokenAuth = await openIDClient.checkTokenAuth(accessToken as string);
|
||||
if (!resCheckTokenAuth.email) {
|
||||
throw "Email was not found";
|
||||
throw new Error("Email was not found");
|
||||
}
|
||||
res.end(
|
||||
this.buildHtml(
|
||||
|
||||
Reference in New Issue
Block a user