Re: Fwd: TFile::Open(): distinguish application level and filesystem level errors

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Thu, 17 Feb 2011 10:50:13 +0100


Hi Thiemo,

   yes that's fine.

Cheers, Fons.

On 17/02/11 10:17, Thiemo Nagel wrote:
> Dear Konstantin, Fons,
>
> On 02/16/2011 09:09 PM, Konstantin Olchanski wrote:
>> You can also cheat:
>>
>> errno = 0;
>> TFile *f = new TFile( argv[1] );
>> if (errno != 0)
>> printf("system error %d (%s) somewhere inside TFile::Open", errno,
>> strerror(errno));
>
> very interesting! If it is ok with the ROOT guys, I'd use this for the hadd
> -k option.
>
> Cheers,
> Thiemo

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Thu Feb 17 2011 - 10:50:18 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 17 2011 - 17:50:01 CET