Restore and fix API tests

This commit is contained in:
James Cole
2025-08-16 14:10:24 +02:00
parent 98db6db1eb
commit f04ed5b8f0
11 changed files with 36 additions and 86 deletions

View File

@@ -66,7 +66,7 @@ trait UserGroupTrait
if ($user instanceof User) {
$this->user = $user;
if (null === $user->userGroup) {
throw new FireflyException(sprintf('User #%d has no user group.', $user->id));
throw new FireflyException(sprintf('User #%d ("%s") has no user group.', $user->id, $user->email));
}
$this->userGroup = $user->userGroup;