Skip to content

Commit

Permalink
fix(cli): error at end of process when writing error log
Browse files Browse the repository at this point in the history
Needed to sanitize the data being rendered.
  • Loading branch information
edvald committed Jul 15, 2021
1 parent 8500aec commit cb68b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/logger/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export function formatGardenError(error: GardenError) {
let out = message || ""

// We recursively filter out internal fields (i.e. having names starting with _).
const filteredDetail = deepFilter(detail, (_val, key: string | number) => {
const filteredDetail = deepFilter(sanitizeObject(detail), (_val, key: string | number) => {
if (typeof key === "string") {
return !key.startsWith("_")
}
Expand Down

0 comments on commit cb68b2a

Please sign in to comment.