ipfilter/ippool: Return error code when listing a pool fails
When an internal or other error occurs during the listing of a pool,
return an error code when extiting ippool(8). Printing an error to
stderr without returning an error code is useless in shell scripts.
(cherry picked from commit 5568c8b2c58a65a07b42af0e09c3fc619f13316c)