Skip to content

Commit 0094855

Browse files
committed
Add previous exception to two factor auth error
1 parent e4a8a30 commit 0094855

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Controller/Component/OneTimePasswordAuthenticatorComponent.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ public function initialize(array $config): void
5151
);
5252
} catch (\Throwable $t) {
5353
throw new \RuntimeException(
54-
__d(
54+
message:__d(
5555
'cake_d_c/users',
5656
'An error has occurred configuring OneTimePasswordAuthenticator. ' .
5757
'Please ensure you have installed robthree/twofactorauth and endroid/qr-code ' .
58-
'(or your preferred QR provider).'
59-
)
58+
'(or your preferred QR provider): {0}', $t->getMessage()
59+
),
60+
previous: $t
6061
);
6162
}
6263
}

0 commit comments

Comments
 (0)