#2369 Return a human-friendly error message when upload fails
Merged 6 years ago by pingou. Opened 6 years ago by pingou.

file modified
+1 -1
@@ -59,7 +59,7 @@ 

        // How'd it go?

        if (data.output === "notok") {

          // Uh-oh.

-         window.alert(data);

+         window.alert('Upload failed or not allowed');

          return;

        }

        else {

Instead of giving the object which won't tell anything to the user, give
a human-friendly error message. It is not very descriptive but we do not
have more info. So stick with this.

Fixes https://pagure.io/pagure/issue/2367

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Looks like Jenkins is having trouble with database connections. LGTM.

rebased

6 years ago

rebased

6 years ago

Thanks for the reviews!

Pull-Request has been merged by pingou

6 years ago