]> git.sven.stormbind.net Git - sven/tclcurl.git/blob - tests/strerror.tcl
releasing package tclcurl version 7.22.0+hg20160822-2
[sven/tclcurl.git] / tests / strerror.tcl
1 package require TclCurl
2
3 puts "The error string for code 6 is '[curl::easystrerror 6]'"
4
5 puts "If the number is too big: '[curl::easystrerror 2000]'"
6
7 puts "It works the same way for the multi interface: '[curl::multistrerror 1]'"
8 puts "And the share interface: '[curl::sharestrerror 1]'"
9
10 catch {curl::easystrerror frelled} errorMsg
11 puts "And if we use a nonsensical code: '$errorMsg'"
12
13 catch {curl::sharestrerror} errorMsg
14 puts "And if we forget the error code:\n    '$errorMsg'"