Skip to content

Commit b61ee71

Browse files
committed
-
1 parent 8ffb44c commit b61ee71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/build/patches.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ function optionalMember<const T>(
3434
// Support deep property assignment, e.g. prop = "a.b.c"
3535
const propPath = prop.split(".");
3636
if (typeof value !== type) {
37-
throw new Error(
38-
`Expected type ${type} for ${prop} but got ${typeof value}`,
39-
);
37+
throw new Error(`Expected type ${type} for ${prop}`);
4038
}
4139
// If value is an object, ensure it is not empty (has at least one key)
4240
if (type === "object" && typeof value === "object" && value !== null) {

0 commit comments

Comments
 (0)