Unix Technical Forum

Re: Errno checks for rmtree()

This is a discussion on Re: Errno checks for rmtree() within the Pgsql Patches forums, part of the PostgreSQL category; --> Bruce Momjian <pgman@candle.pha.pa.us> writes: > OK, so you just wanted _an_ error string to be printed on failure rather ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:03 AM
Tom Lane
 
Posts: n/a
Default Re: Errno checks for rmtree()

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> OK, so you just wanted _an_ error string to be printed on failure rather
> than the reasons.


Well, what we want to know is the particular file that couldn't be
deleted and the errno code. This is all "can't happen" stuff and so
it just has to be a message that is useful for debugging; I don't see
that it has to be amazingly user-friendly.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:03 AM
Bruce Momjian
 
Posts: n/a
Default Re: Errno checks for rmtree()

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > OK, so you just wanted _an_ error string to be printed on failure rather
> > than the reasons.

>
> Well, what we want to know is the particular file that couldn't be
> deleted and the errno code. This is all "can't happen" stuff and so
> it just has to be a message that is useful for debugging; I don't see
> that it has to be amazingly user-friendly.


Wow, you want to print out the raw errno number. We only do that in one
or two places in our code that I could fine.

--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:21 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com