pre-commit: prevent throw