Skip to content

Not catching statSync errors #23

@adzyu100

Description

@adzyu100

Hi,

If statSync errors out, it doesn't get handled and stored in the err object, but instead just gets raised and stops the entire function. This can be easily reproduced by just passing in a path to a wav file that doesn't actually exist. This can probably be fixed by just surrounding the statSync call with a try/catch block to catch these errors. Thanks!

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