handle case where HG extension prints an error but exec.Command returns success.