Skip to content

Commit cb46fc2

Browse files
committed
Give more data when authentication issues appear
1 parent 5e40c49 commit cb46fc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebApp/Auth/AuthError.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class AuthError {
1111

1212
public $errorCode;
1313
public $errorMessage;
14+
public $data;
1415

1516
public function __construct($errorCode, $errorMessage, $data = NULL) {
1617
$this->errorCode = $errorCode;
@@ -23,7 +24,7 @@ public function getMessage() {
2324
}
2425

2526
public function getData() {
26-
return $data;
27+
return $this->data;
2728
}
2829
}
2930

0 commit comments

Comments
 (0)