Updated error message in case of -1 error code .