add ErrorStatement
Merge pull request #2340 from WalterBright/ErrorStatement

add ErrorStatement