Skip to content

Commit

Permalink
fixes: Scott's review
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePresman committed Dec 13, 2023
1 parent 7a5c6fd commit 39538d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions js/src/grpc-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ export class DateiLagerGrpcClient {
} catch (error) {
if (error instanceof RpcError && error.code == "ALREADY_EXISTS") {
throw new ProjectAlreadyExistsError(`project id ${project} already exists`);
} else {
throw error;
}
throw error;
}
}

Expand Down
6 changes: 1 addition & 5 deletions js/src/utils/errors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export class ProjectAlreadyExistsError extends Error {
constructor(msg: string) {
super(msg);
}
}
export class ProjectAlreadyExistsError extends Error {}

0 comments on commit 39538d1

Please sign in to comment.