Fix the error handling of pool grow api #258