Skip to content

Commit dfd410a

Browse files
committed
fix: add stringify for response value in validation filter
1 parent 9309bd2 commit dfd410a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/filter/validator-exception.filter.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const getErrorMsg = (error: ValidationError) => {
1616
}
1717
const message = Object.values(root.constraints)[0];
1818
return `${message}${
19-
root.value ? ` (value: ${root.value}, type: ${typeof root.value})` : ''
19+
root.value
20+
? ` (value: ${JSON.stringify(root.value)}, type: ${typeof root.value})`
21+
: ''
2022
}`;
2123
};
2224

0 commit comments

Comments
 (0)