Prior to this fix, an error stack trace would be printed due to a bug in lockfile-lint's error handling.
It happened due to the error() function shadowing the local error variable in a try/catch scope.
Types of changes
This PR fixes that undefined error.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Checklist:
[ ] I have updated the documentation (if required).
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] I added a picture of a cute animal cause it's fun
Description
Prior to this fix, an error stack trace would be printed due to a bug in lockfile-lint's error handling. It happened due to the
error()
function shadowing the localerror
variable in a try/catch scope.Types of changes
This PR fixes that undefined error.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Checklist: