Ticket #134 (closed enhancement: fixed)
How to get an error code from iso_stream_read() ?
| Reported by: | scdbackup | Owned by: | vreixo |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | libisofs | Version: | |
| Keywords: | Cc: |
Description
My experimental update DVD-R produces the first bad spot after 20 sessions. That should not be overly dramatic in this use case, but an ABORT event sneaked in.
This is because i naively put the return value of iso_stream_read() into iso_error_to_msg() and iso_error_get_severity() which yields "Unknown error" and "ABORT". That return value is -1.
I would count an unreadable sector as "FAILURE", maybe even as "FATAL" if the read occasion is essential to libisofs. But -1 is obviously not the libisofs error code to look at.
So how do i learn about the error details after iso_stream_read() failed ?
