From: <dg...@ni...> - 2008-11-21 18:26:04
|
Quoting "Kevin Kenny" <ke...@ac...>: > The commonest case is filesystem errors, where presenting > the OS status ("file not found", "no permission", "I/O > error", etc.) appropriately translated makes sense. Right > now, that's incredibly hard; you have to parse the error > message and write a new one. I agree with your reasoning, but you've chosen bad examples. I/O errors are some of the few that actually set meaningful -errorcode values: % catch {open no-such} m o 1 % dict get $o -errorcode POSIX ENOENT {no such file or directory} DGP |