Fix package upload error handling

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>