Skip to content

Commit 0d177a9

Browse files
author
Roman Snapko
committed
Improve error handling in Jira Cloud auth validation
1 parent f2963e0 commit 0d177a9

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)