diff --git a/browser/app/js/actions.js b/browser/app/js/actions.js
index 69ac8419b..374b2a428 100644
--- a/browser/app/js/actions.js
+++ b/browser/app/js/actions.js
@@ -482,7 +482,7 @@ export const uploadFile = (file, xhr) => {
}))
xhr.onload = function(event) {
- if (xhr.status == 401 || xhr.status == 403 || xhr.status == 500) {
+ if (xhr.status == 401 || xhr.status == 403) {
setShowAbortModal(false)
dispatch(stopUpload({
slug
@@ -492,6 +492,16 @@ export const uploadFile = (file, xhr) => {
message: 'Unauthorized request.'
}))
}
+ if (xhr.status == 500) {
+ setShowAbortModal(false)
+ dispatch(stopUpload({
+ slug
+ }))
+ dispatch(showAlert({
+ type: 'danger',
+ message: xhr.responseText
+ }))
+ }
if (xhr.status == 200) {
setShowAbortModal(false)
dispatch(stopUpload({
diff --git a/browser/ui-assets.go b/browser/ui-assets.go
index 6cf509ba1..2a2db407e 100644
--- a/browser/ui-assets.go
+++ b/browser/ui-assets.go
@@ -4,7 +4,7 @@
// production/favicon.ico
// production/firefox.png
// production/index.html
-// production/index_bundle-2017-10-17T17-47-22Z.js
+// production/index_bundle-2017-10-24T08-48-08Z.js
// production/loader.css
// production/logo.svg
// production/safari.png
@@ -65,7 +65,7 @@ func productionChromePng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)}
+ info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1508834910, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -82,7 +82,7 @@ func productionFaviconIco() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon.ico", size: 1340, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)}
+ info := bindataFileInfo{name: "production/favicon.ico", size: 1340, mode: os.FileMode(420), modTime: time.Unix(1508834910, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -99,7 +99,7 @@ func productionFirefoxPng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)}
+ info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1508834910, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -156,8 +156,8 @@ var _productionIndexHTML = []byte(`
-
-
+
+