urllib: fix error message

pull/1427/head^2
joe-conigliaro 2019-08-02 14:00:34 +10:00 committed by Alexander Medvednikov
parent 81da1f1ab2
commit be0796ce14
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ const (
)
fn error_msg(message, val string) string {
mut msg := 'net.url: $message'
if val == '' { msg = '$msg ($val)' }
mut msg := 'net.urllib: $message'
if val != '' { msg = '$msg ($val)' }
return msg
}