Skip to content

auto-format hook silently discards formatter errors #235

@philoserf

Description

@philoserf

Location

  • hooks/auto-format.sh:29,32,39

Description

All formatter invocations redirect stderr to /dev/null (2>/dev/null). If prettier or gofmt crashes, the user gets no feedback — files silently remain unformatted.

Suggested Fix

Log errors to a file or stderr instead of discarding. A dedicated log file in .claude/logs/ would preserve debuggability while keeping hook output clean.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions