Resolved error reporting issue, which cause build always to fail.