Passing error message when main file from package.json is not found