Check return value of merge command.