Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure sourceAccountIdentifier is present in getUserDataFromWebsite return value #970

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

doubleface
Copy link
Contributor

Or else, if the konnector does not return any sourceAccountIdentifier,
the account and trigger will be created and the execution will fail when
trying to create the desination folder, which makes it harder to link
with the missing sourceAccountIdentifier.

Checklist

Before merging this PR, the following things must have been done:

  • Faithful integration of the mockups at all screen sizes
  • Tested on iOS
  • Tested on Android
  • Localized in English and French
  • All changes have test coverage
  • Updated README & CHANGELOG, if necessary

…ite return value

Or else, if the konnector does not return any sourceAccountIdentifier,
the account and trigger will be created and the execution will fail when
trying to create the desination folder, which makes it harder to link
with the missing sourceAccountIdentifier.
throw new Error(
'getUserDataFromWebsite did not return any sourceAccountIdentifier. Cannot continue the execution.'
)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are we displaying to the user in that case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a technical error, the generic error message is displayed to the user.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error is printed / sent to the logs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, yes, since #965

@doubleface doubleface merged commit 4a849c9 into master Oct 11, 2023
1 check passed
@doubleface doubleface deleted the fix/getUserDataFromWebsiteValidation branch October 11, 2023 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants