Skip to content

Commit

Permalink
0.0.3 - actually fix the error
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhorning committed Aug 23, 2024
1 parent cde20c3 commit c0679de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rvapi/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jersey/rvapi",
"version": "0.0.2",
"version": "0.0.3",
"exports": "./src/mod.ts",
"imports": {
"@denosaurs/event": "jsr:@denosaurs/event@^2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/rvapi/src/media/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class MediaServices {
const data = await resp.json();

if (!resp.ok || data.type) {
throw new Error('upload file', { cause: resp });
throw new MediaError('upload file', data.type);
}

return data.id;
Expand Down

0 comments on commit c0679de

Please sign in to comment.