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

Display an error message if upload fails #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tacman
Copy link

@tacman tacman commented Feb 19, 2018

There was no error message if the endpoint returned a valid SimpleXML object but it contained an error message. This displays one now (for example, a permissions error).

There was no error message if the endpoint returned a valid SimpleXML object but it contained an error message.  This displays one now (for example, a permissions error).
@TheFox
Copy link
Owner

TheFox commented Feb 19, 2018

This is a little bit too much logging. There is already a logging call. See Line 425 in your file:

$this->getLogger()->info(sprintf('[file] status: %s - ID %s', $logLine, $photoId));

There is already a if ($successful) check. I want to keep it simple.

Therefore I have to reject this PR. But thanks for your will to improve Flickr CLI.

@TheFox TheFox closed this Feb 19, 2018
@tacman
Copy link
Author

tacman commented Feb 19, 2018 via email

@tacman
Copy link
Author

tacman commented Feb 19, 2018 via email

@TheFox TheFox self-assigned this Feb 19, 2018
@TheFox TheFox added this to the v2.1 milestone Feb 19, 2018
@TheFox
Copy link
Owner

TheFox commented Feb 19, 2018

Good point. I'll to that.

@TheFox TheFox reopened this Feb 19, 2018
TheFox added a commit that referenced this pull request Jun 25, 2018
Closes #41. Thanks to @tacman.
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