Skip to content

Commit

Permalink
Merge pull request pkp#256 from withanage/issue148-main
Browse files Browse the repository at this point in the history
pkp#148 Plugin does not give an error message when the client secret is mispelled
  • Loading branch information
withanage authored Mar 19, 2023
2 parents f0143f1 + 736966d commit 02cc9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OrcidProfileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ public function orcidVerify($args, $request)


} catch (\GuzzleHttp\Exception\ClientException $exception) {
$reason = $exception->getResponse()->getBody(false);
$this->plugin->logInfo("Publication fail: ${reason}");
$this->plugin->logInfo("Publication fail:".$exception->getMessage());
$templateMgr->assign('orcidAPIError',$exception->getMessage());

}
$templateMgr->assign('authFailure', true);
Expand Down

0 comments on commit 02cc9e6

Please sign in to comment.