Added meaningfull error messages and error codes for the post-build