When handing std::fstream in SorterBase::File check fail/bad bits

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Storage Execution 2025-09-01, Storage Execution 2025-09-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently when an operation with std::fstream in SorterBase::File fails, we check posix error, but don't check fail or bad bits in the std::fstream.

      This can lead to error messages like this: 

      Error reading file <..>: success 

       

      It would be great to also check fstream for an error code.

       

      However, it still might not be very informative:

      code: 1 message: iostream stream error 

      But still better than just "success".

            Assignee:
            Stephanie Eristoff
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: