Revert "print filename only once, indent errors"

This reverts commit 47d7b6dd09ba50e9e5638891690ec9c2c60e5363.
print filename only once, indent errors; #1