Skip to content

Commit f825df3

Browse files
dynstwebmaster128
authored andcommitted
use specific thrown error string
1 parent 8f6ff46 commit f825df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/math/src/integers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class Uint64 implements Integer, WithByteConverters {
274274
public toNumber(): number {
275275
const num = Number(this.data);
276276
if (!Number.isSafeInteger(num)) {
277-
throw new Error("Not safe integer");
277+
throw new Error("number can only safely store up to 53 bits");
278278
}
279279
return num;
280280
}

0 commit comments

Comments
 (0)