Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
bz-1007274:Ugly error screen appears after clicking on upload button …
Browse files Browse the repository at this point in the history
…without selecting any file first
  • Loading branch information
Jervis Liu committed Sep 18, 2013
1 parent fd7ff4e commit c96ae12
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -38,6 +38,8 @@
import org.guvnor.m2repo.service.M2RepoService;
import org.jboss.errai.common.client.api.Caller;
import org.uberfire.client.common.BusyPopup;
import org.uberfire.client.common.popups.errors.ErrorPopup;

import org.uberfire.client.common.FormStyleLayout;

public class M2RepoEditorView
Expand Down Expand Up @@ -164,7 +166,7 @@ public void onSubmitComplete( final WellForm.SubmitCompleteEvent event ) {
hiddenFieldsPanel.setVisible( true );
} else {
BusyPopup.close();
Window.alert( "Upload failed:" + event.getResults() );
ErrorPopup.showMessage( "Upload failed:" + event.getResults() );

hiddenFieldsPanel.setVisible( false );
hiddenArtifactIdField.setText( null );
Expand Down

0 comments on commit c96ae12

Please sign in to comment.