Skip to content

Commit d52764b

Browse files
committed
newToken error adjusted
1 parent de5fc17 commit d52764b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Iam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function newToken()
135135
'status' => $status,
136136
'result' => $token,
137137
]);
138-
throw new Exception('Failed to obtain new iamToken');
138+
throw new Exception('Failed to obtain new iamToken: no token was received.');
139139
}
140140
}
141141
else
@@ -144,7 +144,7 @@ public function newToken()
144144
'status' => $status,
145145
'result' => $result,
146146
]);
147-
throw new Exception('Failed to obtain new iamToken');
147+
throw new Exception('Failed to obtain new iamToken: response status is ' . $status);
148148
}
149149
}
150150

0 commit comments

Comments
 (0)