docs(source-code): add docs to build project from source, docker + local build

This commit is contained in:
Amruth Pillai
2022-03-09 14:05:40 +01:00
parent 6c671f2dba
commit ef3b2c5638
24 changed files with 385 additions and 172 deletions

View File

@ -38,10 +38,7 @@ export class AuthService {
throw new HttpException('A user with that username and/or email already exists.', HttpStatus.UNAUTHORIZED);
}
throw new HttpException(
'Something went wrong. Please try again later, or raise an issue on GitHub if the problem persists.',
HttpStatus.INTERNAL_SERVER_ERROR
);
throw new HttpException(error, HttpStatus.INTERNAL_SERVER_ERROR);
}
}
@ -124,7 +121,7 @@ export class AuthService {
return user;
} catch (error: any) {
if (error.status !== HttpStatus.NOT_FOUND) {
throw new Error('Something went wrong, please try again later.');
throw new HttpException(error, HttpStatus.BAD_GATEWAY);
}
const UserInfoClient = google.oauth2('v2').userinfo;