This commit is contained in:
Lee
2024-04-25 05:11:17 +01:00
parent e230ae877d
commit d83535cbb9
3 changed files with 5 additions and 4 deletions

View File

@ -76,6 +76,7 @@ public class ScoreSaberService extends TextWebSocketHandler {
public ScoreSaberAccountToken getAccount(String id) {
ScoreSaberAccountToken account = WebRequest.getAsEntity(String.format(GET_PLAYER_ENDPOINT, id), ScoreSaberAccountToken.class);
if (account == null) { // Check if the account doesn't exist.
log.info("Account with id '{}' not found.", id);
throw new ResourceNotFoundException("Account with id '%s' not found.".formatted(id));
}
return account;

View File

@ -1,6 +1,6 @@
server:
address: 0.0.0.0
port: 3005
port: 80
servlet:
context-path: /