Skip to content

Commit

Permalink
Throw error on unknown op
Browse files Browse the repository at this point in the history
  • Loading branch information
Davilarek committed Sep 16, 2024
1 parent ecf16d0 commit 303ba11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/RealFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class RealFSClient {
appendPath(filePath);
break;
default:
break;
throw new Error("Unknown operation requested " + kind);
}
const req = fetch(constructedFullApiUrl.join("/") + (search.length > 0 ? `?${search.map((x) => `${x.key}=${x.value}`).join("&")}` : ""), {
method: targetMethod,
Expand Down

0 comments on commit 303ba11

Please sign in to comment.