block: update add_partition() error handling