Skip to content

Commit 4e86935

Browse files
committed
Improve error
1 parent d309663 commit 4e86935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type SigOpts = VerOpts & {
4747
export function validateOpts(opts: object): void {
4848
// We try to catch u8a, since it was previously valid argument at this position
4949
if (typeof opts !== 'object' || opts === null || isBytes(opts))
50-
throw new Error('opts should be object');
50+
throw new Error('expected opts to be an object');
5151
}
5252

5353
export function validateVerOpts(opts: VerOpts): void {

0 commit comments

Comments
 (0)