return non-success error code in the other case as well