func must(err error) { if err != nil { switch err := err.(type) { case *errors.Error: comm.Die(err.ErrorStack()) default: comm.Die(err.Error()) } } }
func dl(url string, dest string) { _, err := tryDl(url, dest) if err != nil { comm.Die(err.Error()) } }