fix error reporting for shortcut upload
This commit is contained in:
parent
86322e34e0
commit
315a3c6615
|
@ -0,0 +1 @@
|
|||
Bad request: {{error}}
|
|
@ -1 +0,0 @@
|
|||
Error: {{internal_error}}
|
|
@ -222,7 +222,7 @@ pub fn quick_upload(
|
|||
|
||||
let mut buf = Vec::default();
|
||||
if let Err(error) = std::io::copy(&mut data.open().take(UPLOAD_LIMIT), &mut buf) {
|
||||
return MyResponse::bad_request("500-plain", failure::err_msg(error));
|
||||
return MyResponse::bad_request("400-plain", failure::err_msg(error));
|
||||
}
|
||||
|
||||
MyResponse::upload_response_quick(vks::process_key(
|
||||
|
|
Loading…
Reference in New Issue