Skip to content

Help find problematic file with error 'Failed to seek to offset' #124

@richelbilderbeek

Description

@richelbilderbeek

Dear VarTrix maintainers,

I try to help out a user that has the error Failed to seek to offset when running VarTrix, I am happy VarTrix nicely reports the error, yet I feel it could be even better, by mentioning in which file this error occurs, for example: Failed to seek to offset in file '[filename]'.

The error is produced by htslib in files here and here. Those functions -as far as I understand- do not know what is the name of the file.

Luckily, VarTrix can do better!

My suggestion is that when htslib is called to read a file, that the VarTrix error message adds the filename to the error message.

In that way, VarTrix users can easier diagnose their errors.

I volunteer to add this by a Pull Request if this suggestion is accepted and when requested to do so 👍

For the full error details (if needed), see the user support ticket at https://github.com/UPPMAX/ticket_296259.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions