Fixed double error messge on upload fail.