Skip to content

Commit

Permalink
Merge pull request #144 from toloudis/patch-1
Browse files Browse the repository at this point in the history
clearer wording in errors
  • Loading branch information
gzuidhof committed Jul 14, 2023
2 parents 1002181 + af055bd commit 15e3a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export class ArrayNotFoundError extends Error implements ZarrError {
export class GroupNotFoundError extends Error implements ZarrError {
__zarr__ = 'GroupNotFoundError';
constructor(path: string) {
super(`ground not found at path ${path}`);
super(`group not found at path ${path}`);
Object.setPrototypeOf(this, GroupNotFoundError.prototype);
}
}

export class PathNotFoundError extends Error implements ZarrError {
__zarr__ = 'PathNotFoundError';
constructor(path: string) {
super(`nothing not found at path ${path}`);
super(`nothing found at path ${path}`);
Object.setPrototypeOf(this, PathNotFoundError.prototype);
}
}
Expand Down

0 comments on commit 15e3a3f

Please sign in to comment.