Error 203?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
I wrote this little plugin.
    DWORD le = GetLastError();
    Sprintf(psz, L"%lu", le);
    return 0;
No matter how I use it, it gives 203.

v:\> type I_do_not_exist & echo %_gle
TCC: (Sys) The system cannot find the file specified.

v:\> echo %@errtext[203]
The system could not find the environment option that was entered.
Isn't that what %_SYSERR is for?
I was trying to get around what seems to be a shortcoming of _SYSERR. It's not set if you have an "ON ERROR" routine. See my recent post in "Suggestions".

That's somewhat of a catch-22. If you want _SYSERR set, you can't have an "ON ERROR" routine. But without an "ON ERROR" routine, by the time you look at _SYSERR, you have already seen an error message.

IMHO, an "ON ERROR" routine is THE place to be looking at _SYSERR.