Skip to content

Commit

Permalink
fix not a variant error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike96Angelo committed Jan 10, 2023
1 parent 39d4f0f commit dd19bfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "variant-match",
"version": "1.1.4",
"version": "1.1.5",
"description": "Brings variant match pattern to TypeScript.",
"main": "variant.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/variant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const assertVariant = (v: any) => {

if (!hasType || !hasValues) {
throw new TypeError(
`Expected value is not of type Variant { type: string; values: any[]; }`
`Expected value is not of type Variant { ${kind_symbol.toString()}: string, ${values_symbol.toString()}: any[] }`
);
}
};
Expand Down

0 comments on commit dd19bfe

Please sign in to comment.