Skip to content
Snippets Groups Projects
Commit 24b729c8 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

change Info() to Error() if output files cannot be opened in MakeClass().

git-svn-id: http://root.cern.ch/svn/root/trunk@24828 27541ba8-7e3a-0410-8455-c3a389f83636
parent 664b5c6b
Branches
Tags
No related merge requests found
...@@ -1308,14 +1308,14 @@ Int_t TTreePlayer::MakeClass(const char *classname, const char *option) ...@@ -1308,14 +1308,14 @@ Int_t TTreePlayer::MakeClass(const char *classname, const char *option)
thead.Form("%s.h", classname); thead.Form("%s.h", classname);
FILE *fp = fopen(thead, "w"); FILE *fp = fopen(thead, "w");
if (!fp) { if (!fp) {
Info("MakeClass","cannot open output file:%s", thead.Data()); Error("MakeClass","cannot open output file %s", thead.Data());
return 3; return 3;
} }
TString tcimp; TString tcimp;
tcimp.Form("%s.C", classname); tcimp.Form("%s.C", classname);
FILE *fpc = fopen(tcimp, "w"); FILE *fpc = fopen(tcimp, "w");
if (!fpc) { if (!fpc) {
Info("MakeClass","cannot open output file:%s", tcimp.Data()); Error("MakeClass","cannot open output file %s", tcimp.Data());
fclose(fp); fclose(fp);
return 3; return 3;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment