}
AliInfo(Form("%lld bytes read!\n", file->GetBytesRead()));
- ParseBuffer(buf);
+ Bool_t goodParsing = ParseBuffer(buf);
file->Close();
delete[] buf;
- return kTRUE;
+ return goodParsing;
}
nextLine.Remove(TString::kTrailing, '/');
nextLine = nextLine(nextLine.Last('/') + 1, nextLine.Length() - nextLine.Last('/') + 1);
- Int_t sscanftmp = 0;
- if (1 != sscanf(nextLine.Data(), "%08d", &sscanftmp)) {
+ if (!nextLine.IsDigit()) {
AliError("Survey text file sintax error! (incorrectly formatted Report URL)");
+ AliError(Form("Wrong report number string: \"%s\"",nextLine.Data()));
lines->Delete();
delete lines; lines = NULL;
return kFALSE;