now able to access error msg