diff options
-rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/StashApplyCommand.java | 5 | ||||
-rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/StashApplyCommand.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/StashApplyCommand.java index 6e8b688d71..f2bb82e4b4 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/StashApplyCommand.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/StashApplyCommand.java @@ -53,10 +53,11 @@ public class StashApplyCommand extends try { op.execute(monitor); } catch (CoreException e) { - Activator.logError( + return new Status(IStatus.ERROR, Activator.getPluginId(), MessageFormat.format( UIText.StashApplyCommand_applyFailed, - commit.name()), e); + commit.abbreviate(7).name(), + e.getLocalizedMessage()), e); } return Status.OK_STATUS; } diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties index 285d37f72d..90bd892388 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties @@ -1586,7 +1586,7 @@ StagingView_StageItemMenuLabel=Add to Git Index StagingView_IgnoreItemMenuLabel=Ignore StagingView_DeleteItemMenuLabel=Delete StagingViewContentProvider_SubmoduleError=Unhandled exception while analyzing submodules -StashApplyCommand_applyFailed=Applying stashed commit ''{0}'' failed +StashApplyCommand_applyFailed=Applying stashed commit ''{0}'' failed due to ''{1}'' StashApplyCommand_jobTitle=Apply changes from stashed commit ''{0}'' StashCreateCommand_jobTitle=Stashing local changes StashCreateCommand_messageEnterCommitMessage=Enter stash commit message (optional): |