@@ -16,7 +16,7 @@ const sendFile = async (urlPath, data) => {
|
|||||||
body: data,
|
body: data,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (r.status != 200) {
|
if (r.status > 399) {
|
||||||
throw `${r.status}: FAILED TO UPLOAD TO ${repoBaseUrl}/${urlPath}`;
|
throw `${r.status}: FAILED TO UPLOAD TO ${repoBaseUrl}/${urlPath}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user