HansHammel / license-compatibility-checker

Check npm dependencies' package.json for license compatibility (aka compliance check) with the current project based on spdx notation and naming conventions.
MIT License
93 stars 6 forks source link

More options on error handling #5

Closed helio-frota closed 5 years ago

helio-frota commented 5 years ago

Hi,

I'm using license-compatibility-checker as module. When I execute the code I see this error message:

{ [Error: ENOENT: no such file or directory, access '/home/hf/Desktop/license-reporter/node_modules/@babel/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'access',
  path:
   '/home/hf/Desktop/license-reporter/node_modules/@babel/package.json' }

Any chance to suppress this kind of error? thanks

HansHammel commented 5 years ago

This is a permission error by the os, so throwing here is perfectly valid because there is no chance to program to work without permissions. Closing...