kunt

golang IRC bot
git clone git://git.2f30.org/kunt
Log | Files | Refs | LICENSE

commit 8da2307ae59927c53030a8a7b1a978203573e31f
parent c224c825d7a52628d895e1954cd5a634b5bb7119
Author: dsp <dsp@2f30.org>
Date:   Tue, 29 Apr 2014 17:28:05 +0100

more descriptive error message when title fetching fails

Diffstat:
Msrc/kunt/kunt.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kunt/kunt.go b/src/kunt/kunt.go @@ -197,7 +197,7 @@ func resolveYoutubeTitle(url string) (title string, ok bool) { //this relates to the way titleregex is title = string(titles[0][35 : len(titles[0])-2]) } else { - log.Printf(" [addurl] could not find the title regexp in youtube HTTP GET response\n") + log.Printf(" [addurl] could not find the title regexp for url: %s \n", url) } } else { log.Printf(" [addurl] could not read response body with ioutil\n")