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

refactor: improve and align ftp tls error msg #418

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

developStorm
Copy link
Member

@developStorm developStorm commented Apr 11, 2024

resolves #276

Copy link
Contributor

@phillip-stephens phillip-stephens left a comment

Choose a reason for hiding this comment

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

While we're here, let's wrap the errors in the function Scan() as well. It looks like here we're returning the error string, so it'd be helpful for debugging if we knew exactly where the error came from.

modules/ftp/scanner.go Outdated Show resolved Hide resolved
Copy link
Contributor

@phillip-stephens phillip-stephens left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the improvement! @developStorm

@phillip-stephens phillip-stephens merged commit 70b22df into master Apr 12, 2024
2 checks passed
@phillip-stephens phillip-stephens deleted the fix/ftp-tls-error-status branch April 12, 2024 18:08
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.

ftp module: status success when AUTH TLS failed
2 participants