1 package require TclCurl
3 puts "The error string for code 6 is '[curl::easystrerror 6]'"
5 puts "If the number is too big: '[curl::easystrerror 2000]'"
7 puts "It works the same way for the multi interface: '[curl::multistrerror 1]'"
8 puts "And the share interface: '[curl::sharestrerror 1]'"
10 catch {curl::easystrerror frelled} errorMsg
11 puts "And if we use a nonsensical code: '$errorMsg'"
13 catch {curl::sharestrerror} errorMsg
14 puts "And if we forget the error code:\n '$errorMsg'"