mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 22:12:19 +03:00
upload: cleans up error handling
This commit is contained in:
parent
79d54aa50c
commit
beb49cd31e
@ -59,9 +59,9 @@ export const formMultipart = async (req, res, { user, bucketName }) => {
|
||||
});
|
||||
|
||||
return reject({
|
||||
decorator: "SERVER_BUCKETS_PUSH_ISSUE",
|
||||
decorator: "SERVER_UPLOAD_ERROR",
|
||||
error: true,
|
||||
message: e,
|
||||
message: e.message,
|
||||
});
|
||||
}
|
||||
|
||||
@ -81,9 +81,9 @@ export const formMultipart = async (req, res, { user, bucketName }) => {
|
||||
});
|
||||
|
||||
return reject({
|
||||
decorator: "SERVER_BUCKET_STREAM_FAILURE",
|
||||
decorator: "SERVER_UPLOAD_ERROR",
|
||||
error: true,
|
||||
message: e,
|
||||
message: e.message,
|
||||
});
|
||||
});
|
||||
|
||||
@ -121,9 +121,9 @@ export const formMultipart = async (req, res, { user, bucketName }) => {
|
||||
});
|
||||
|
||||
return {
|
||||
decorator: "SERVER_BUCKETS_VERIFY_ISSUE",
|
||||
decorator: "SERVER_UPLOAD_ERROR",
|
||||
error: true,
|
||||
message: e,
|
||||
message: e.message,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user