Skip to content

Commit 184eb7e

Browse files
committed
-
1 parent b61ee71 commit 184eb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +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(`Expected type ${type} for ${prop}`);
37+
throw new Error(`Expected type ${value} for ${prop}`);
3838
}
3939
// If value is an object, ensure it is not empty (has at least one key)
4040
if (type === "object" && typeof value === "object" && value !== null) {

0 commit comments

Comments
 (0)