Fix indendation error messages
Merge pull request #3329 from xixixao/issue3325

Fixes #3325: implicit indendation error messages