added error code to pool does not exist error