Skip to content

Commit 0f7c63c

Browse files
author
Roman Snapko
authored
Improve error handling in Jira Cloud auth validation (#2114)
<!-- Ensure the title clearly reflects what was changed. Provide a clear and concise description of the changes made. The PR should only contain the changes related to the issue, and no other unrelated changes. --> Fixes OPS-3427 <img width="972" height="780" alt="image" src="https://github.com/user-attachments/assets/7b770f1e-751a-4b36-88d2-a3307e6caca1" />
1 parent 1a5b0ca commit 0f7c63c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/blocks/jira-cloud/src

packages/blocks/jira-cloud/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can generate your API token from:
4444
} catch (e) {
4545
return {
4646
valid: false,
47-
error: ((e as HttpError).response.body as any).message,
47+
error: (e as HttpError)?.message ?? 'Invalid credentials',
4848
};
4949
}
5050
},

0 commit comments

Comments
 (0)