Skip to content

Commit

Permalink
ohh come on
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 10, 2024
1 parent 2b3ec1f commit 2917355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/src/pages/repositories/repository/objects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const uploadFile = async (config, repo, reference, path, file, onProgress) => {
await staging.link(repo.id, reference.id, fpath, getResp, checksum, file.size, file.type);
} catch(error) {
if (error.status >= 400) {
throw new Error(`Error uploading file: HTTP ${error.status}`);
throw new Error(`Error uploading file: HTTP ${error.status}`);
}
if (error.status === 0) {
throw new Error(`CORS settings error. Check documentation for more info.`);
Expand Down

0 comments on commit 2917355

Please sign in to comment.