Skip to content

Commit

Permalink
Handle specific Django error case
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Nov 13, 2015
1 parent 9fd9151 commit 9d702fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tatianastore/templates/storeadmin/upload_album.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h2>Upload an album as a ZIP file</h2>
// Javascript redirect to album edit

// The server upload failed for a reason or another
if(xhr.status >= 400) {
if(xhr.status >= 400 || xhr.responseText[0] == "<") {
// This won't make a perfect error page, but gives us something readable
$(document.body).html("<pre>" + xhr.responseText + "</pre>");
return;
Expand Down

0 comments on commit 9d702fc

Please sign in to comment.