Skip to content

Commit

Permalink
Avoid exiting program when could not read %d bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroEzq committed May 31, 2024
1 parent 22760ed commit 592c6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TRestRawMultiFEMINOSToSignalProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ TRestEvent* TRestRawMultiFEMINOSToSignalProcess::ProcessEvent(TRestEvent* inputE
if (!endOfEvent) {
if (fread(&(cur_fr[fr_offset]), sizeof(unsigned short), nb_sh, fInputBinFile) != nb_sh) {
printf("Error: could not read %d bytes.\n", (nb_sh * 2));
exit(1);
return nullptr; // exit(1);
}
totalBytesReaded += sizeof(unsigned short) * nb_sh;

Expand Down

0 comments on commit 592c6ea

Please sign in to comment.