Skip to content

Commit

Permalink
include type in error
Browse files Browse the repository at this point in the history
  • Loading branch information
apacheli committed May 8, 2021
1 parent 5a456cf commit 4e79376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const pack_value = (e: E, value: unknown) => {
: small_atom(e, [110, 105, 108]);
case "string": return string(e, value);
case "undefined": return small_atom(e, [110, 105, 108]);
default: throw new Error("Unsupport type");
default: throw new Error(`Unsupported type '${typeof value}'`);
}
};

Expand Down

0 comments on commit 4e79376

Please sign in to comment.