diff options
author | dkf <dkf@noemail.net> | 2013-02-08 09:23:56 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2013-02-08 09:23:56 (GMT) |
commit | 1d089600b49735b9721ca95a91aa7a016ff1cbdb (patch) | |
tree | 51c7bf9c2d087ad41b3bdfe67167b46770aa9601 | |
parent | a34cf361a8ce9108f7c492af80ccb574f501859b (diff) | |
download | tcl-1d089600b49735b9721ca95a91aa7a016ff1cbdb.zip tcl-1d089600b49735b9721ca95a91aa7a016ff1cbdb.tar.gz tcl-1d089600b49735b9721ca95a91aa7a016ff1cbdb.tar.bz2 |
[3603804]: Improve example to actually be capable of throwing the trapped errors
FossilOrigin-Name: 2ac1c2462928c2a26d56bc07a7e575dac822dbac
-rw-r--r-- | doc/try.n | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ Handle different reasons for a file to not be openable for reading: .PP .CS \fBtry\fR { - set f [open /some/file/name] + set f [open /some/file/name w] } \fBtrap\fR {POSIX EISDIR} {} { puts "failed to open /some/file/name: it's a directory" } \fBtrap\fR {POSIX ENOENT} {} { |