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

Plugins: Add better plugin notices to install and update errors #2600

Merged
merged 1 commit into from
Jan 21, 2016

Conversation

enejb
Copy link
Member

@enejb enejb commented Jan 19, 2016

Fixes #409.

Add additional explanation As to why a plugin might have failed or updated. The explanation text currently is exactly the same that we would get from WordPress if the same error occurred. I wasn't able to test each of the cases.

cc: @johnHackworth, @roccotripaldi and @lezama

@enejb enejb added Jetpack [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Jetpack Plugins labels Jan 19, 2016
@enejb enejb self-assigned this Jan 19, 2016
@enejb enejb force-pushed the add/improved-error-messages-install-plugins branch from 80f8e2c to 39bcf09 Compare January 20, 2016 17:45
@johnHackworth
Copy link
Contributor

Works great for the cases I could test! 🚢

image

@johnHackworth johnHackworth added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 21, 2016
return i18n.translate( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' );

default:
return null;
Copy link
Member

Choose a reason for hiding this comment

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

Nice, exhaustive list!

@roccotripaldi
Copy link
Member

Looks good, thanks for picking this up Enej, and sorry I could not get to it.
I left one comment. I was only able to test one case: 'Plugin already installed'
In trying to emulate other cases like fs_no_plugins_dir or files_not_writable, would cause wordpress to error out early and leave me with the generic error message before a more verbose message could be output. I think we may be stuck with that.

@enejb enejb force-pushed the add/improved-error-messages-install-plugins branch from 39bcf09 to d24c3b1 Compare January 21, 2016 18:45
@enejb enejb force-pushed the add/improved-error-messages-install-plugins branch from ac546f8 to 86c873a Compare January 21, 2016 22:24
enejb added a commit that referenced this pull request Jan 21, 2016
…install-plugins

Plugins: Add better plugin notices to install and update errors.
@enejb enejb merged commit bc61ea7 into master Jan 21, 2016
@enejb enejb deleted the add/improved-error-messages-install-plugins branch January 21, 2016 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants