Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
15543408
Commit
15543408
authored
Aug 16, 2014
by
Tobias Reich
Browse files
Throw error when upload failes
parent
24fc2184
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/upload.js
View file @
15543408
...
@@ -135,6 +135,9 @@ upload = {
...
@@ -135,6 +135,9 @@ upload = {
.
html
(
"
Server returned the status code
"
+
xhr
.
status
)
.
html
(
"
Server returned the status code
"
+
xhr
.
status
)
.
show
();
.
show
();
// Throw error
lychee
.
error
(
"
Upload failed. Server returned the status code
"
+
xhr
.
status
+
"
!
"
,
xhr
,
xhr
.
responseText
);
}
}
// Check if there are file which are not finished
// Check if there are file which are not finished
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment