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

From: Thiemo Nagel <thiemo.nagel_at_tum.de>
Date: Thu, 17 Feb 2011 10:17:07 +0100


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

-- 
+-----------------------------------+--------------------------+
| Dipl.-Phys. Thiemo Nagel          |                          |
| Technische Universitaet Muenchen  | Room    PH1 3276         |
| Physik-Department E18             |                          |
| James-Franck-Strasse              | Phone  +49 89 289-12379  |
| D-85747 Garching                  | Fax    +49 89 289-12570  |
+-----------------------------------+--------------------------+
Received on Thu Feb 17 2011 - 10:47:51 CET

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