-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display a meaningful error when the config file is missing (#288)
* feat: display a meaningful error when the config file is missing ## What When you try to add a user with `.all-contributorsrc` missing, you will get a cryptic error message (see also all-contributors/all-contributors#378): ``` $ all-contributors add darekkay maintenance Cannot read property 'then' of null ``` This PR displays a meaningful error message in this case. ## Why So users know what's causing the problem. ## How Before a contribution is being added, the script checks whether the config file exists. If it doesn't, an error message is being displayed: ``` $ all-contributors add darekkay maintenance Configuration file not found: C:\projects\test\.all-contributorsrc ``` * docs: add darekkay as a contributor * refactor: fixed typos * docs(readme): table rectification Co-authored-by: Maximilian Berkmann <[email protected]>
- Loading branch information
1 parent
24004d5
commit d517440
Showing
5 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters