Re: handling of errors in slave



William J Poser wrote:
Our French speaker is likely to have no idea that "SetBalloonHelpShow" is the internal
name for the command "ActiverInfobulles" in his or her init file.

My gut feeling is that it's not a great idea to make the controller language go so native, but that doesn't really address your problem ...

Has anyone addressed this problem? Offhand, the only way I can see to deal with it
is to trap the error messages, parse out the command names, translate them
into the user's language (which by hypothesis we can already do since it must
have been done creating the slave alias in the first place), and reassemble
the error message before showing it to the user. I haven't actually tried to do
this yet, but it presumably wouldn't be terribly difficult since the form of the
error messages is limited and we can generate a list of commands to search for.
However, the task would be simplified if Tcl supported this by setting a
variable to contain the name of the offending command so that we don't have
to parse it out.

Well, you can see what $::errorInfo holds. I have had similar situations where we did parse the error result (in fact, I think the core Tcl does it in some code). You can actually see tkcon do this for another purpose - the hot errors functionality (when you pop up an error, it will hotlink the function names so you can see/edit the code).

--
  Jeff Hobbs, The Tcl Guy
  http://www.ActiveState.com/, a division of Sophos
.



Relevant Pages

  • Re: Improperly Configured Screen ?
    ... As recommanded I added "exit 0" at the beginning of the gdm file using the ... command "nano gdm" from root, ... Her are some general information and the warning or error messages I found ...
    (Debian-User)
  • Re: Improperly Configured Screen ?
    ... As recommanded I added "exit 0" at the beginning of the gdm file using the ... command "nano gdm" from root, ... Her are some general information and the warning or error messages I found ...
    (Debian-User)
  • Re: Pages wont open in IE6 (SP2)
    ... That's not Java, it's JavaScript - something entirely different. ... That command put the proper entry in the Registry so that IE can find ... Please respond in Newsgroup only. ... this thread with the details and any error messages. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Running XCopy using AT command
    ... With the AT command the system account has local access rights but none ... Since jobs run in their own environment, ... type the name of your batch file. ... able to see all the error messages. ...
    (microsoft.public.windows.server.general)
  • ANN: AOLserver 4.5.0 released!
    ... On behalf of the AOLserver Team, I have the honor of announcing the ... AOLserver 4.5.0 is a major upgrade including several new Tcl commands, ... AOLserver is America Online's Open-Source web server. ... the "ns_zlib" command for compressing and uncompressing ...
    (comp.lang.tcl)