Skip to content

Commit

Permalink
Add more logs on instance get access token error
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Oct 11, 2024
1 parent 124ab1a commit 6b19c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api/instance/instance.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = function InstanceModel(logger, db, redisClient, jwtService, fin

// the instance doesn't exist or has been deleted
if (instanceInDb === null) {
throw new ForbiddenError();
throw new ForbiddenError(`Instance ${instance.id} doesn't exist or has been deleted.`);

Check warning on line 127 in core/api/instance/instance.model.js

View check run for this annotation

Codecov / codecov/patch

core/api/instance/instance.model.js#L127

Added line #L127 was not covered by tests
}

const accessToken = jwtService.generateAccessTokenInstance(instanceInDb);
Expand Down

0 comments on commit 6b19c2f

Please sign in to comment.