Skip to content

Application crashes if wrong key is passed to decryptFile() #14

Description

@jainanuj7

I manually commented out line 70 i.e. fs.unlink(outputPath); in lib/file-encryptor.js and the application doesn't crash after that. I think it is not able to unlink (delete) the file due to some reason.

NOTE: This only happens when invalid key is passed to the decryptFile() function.
Check the attached screenshot (from my heroku console)

error

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