On 12/20/07, Magnus Hagander <[EMAIL PROTECTED]> wrote:

> ereport(WARNING,
>     (errmsg("could not open file \"%s\": %s violation", fileName,
>           (GetLastError() ==
> ERROR_SHARING_VIOLATION)?_("sharing"):_("lock")),
>          errdetail("Continuing to retry for 30 seconds."),
>          errhint("You may have antivirus, backup or similar software
> interfering with the database.")));

Without looking myself, is it possible for errhint() or errdetail() to
do something that affects GetLastError()? It's like errno, checking it
very far away from the call site makes me nervous.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to