-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[FtpUploadV2] Fail on exception when reading FTP options #14742
[FtpUploadV2] Fail on exception when reading FTP options #14742
Conversation
e66df32
to
faa4ccf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Please take a look at small comment
Tested manually this PR. New behavior: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Task name: FtpUploadV2
Description: Fail task when exception is thrown while retrieving FTP options; this issue happens because unhandled promise rejections don't fail the task.
FtpUploadV1 is not affected by this issue because it reads FTP options synchronously.
Documentation changes required: No
Added unit tests: No
Checklist:
Examples:
Old behavior:
✔️FtpUpload@2 valid FTP endpoint
✔️FtpUpload@2 invalid FTP endpoint - doesn't upload anything, but doesn't fail either because unhandledPromiseRejection isn't failing the task
New behavior:
✔️FtpUpload@2 valid FTP endpoint
❌FtpUpload@2 invalid FTP endpoint - fails as expected
FtpUploadV1 (no need to change):
✔️FtpUpload@1 valid FTP endpoint
❌FtpUpload@1 invalid FTP endpoint - fails as expected