Skip to content

Commit 6fa3a37

Browse files
committed
chore(publisher): improve state error message
1 parent b352538 commit 6fa3a37

File tree

1 file changed

+5
-1
lines changed
  • packages/npm/@amazeelabs/publisher/src

1 file changed

+5
-1
lines changed

packages/npm/@amazeelabs/publisher/src/server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ const runServer = async (): Promise<HttpTerminator> => {
222222

223223
// Check if the state matches.
224224
if (!stateMatches(req)) {
225-
return res.status(500).json('State does not match.');
225+
return res
226+
.status(400)
227+
.json(
228+
'State does not match. Check if the Drupal Consumer entity redirect URI is properly set.',
229+
);
226230
}
227231

228232
const { code } = req.query;

0 commit comments

Comments
 (0)