Skip to content

Commit

Permalink
chore: Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Mar 28, 2024
1 parent b5d6275 commit 0fd3f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/StateChangeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private function getProviderState(Request $request): ProviderState
throw new BadRequestException("'state' is missing or invalid in state change request.");
}
if (!is_array($params)) {
throw new BadRequestException("'params' is missing or invalid in state change request.");
throw new BadRequestException("'params' is invalid in state change request.");
}

return new ProviderState($state, $params);
Expand Down

0 comments on commit 0fd3f0f

Please sign in to comment.