Skip to content

Commit 4df3d5a

Browse files
committed
fix auth exception
1 parent 9516916 commit 4df3d5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Auth/BaseCanDirective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function handleField(FieldValue $fieldValue): void
108108
} catch (\Throwable $throwable) {
109109
$action = $this->directiveArgValue('action');
110110
if ($action === 'EXCEPTION_NOT_AUTHORIZED') {
111-
throw new AuthorizationException($throwable->getMessage(), $throwable->getCode(), $throwable);
111+
throw new AuthorizationException(AuthorizationException::MESSAGE, $throwable->getCode(), $throwable);
112112
}
113113

114114
if ($action === 'RETURN_VALUE') {

0 commit comments

Comments
 (0)