Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: better error messages with human readable outputs (#609)
* refactor: properly handle invalid template package * refactor: error checks when getting template name * refactor: remove duplicate exception throw * refactor: check if assets dest exists * refactor: add error checks when upgrading * chore: add comment for using process.exit() * refactor: improve error outputs in link command * refactor: use for of loop * refactor: check package before uninstalling * refactor: use CLIError instead of direct exit * refactor: handle potential android pkg name errors * refactor: fix typos/mistakes in error outputs * refactor: add adb & android sdk path checks * refactor: fix imports * refactor: improve install apk error outputs * Apply suggestions from code review Co-Authored-By: Michał Pierzchała <thymikee@gmail.com> * refactor: add init doc link in error output * test: make sure all tests pass * refactor: use try/catch around readFileSync * refactor: do not read build.gradle twice * refactor: clean up code in android linking * fix: packageJson not defined in templateName * refactor: remove unintentional --verbose flag * refactor: make flow very happy * refactor: remove unnecessary variable definition * pkgjson undefined tweak * eslint fix * remove adb/android_home checks because we have doctor * use mockImplementationOnce * revert link changes, as it's going to be removed in next version * inline fns * revert uninstall changes as we're removing that in next version * adjust copy * mock existsSync once * remove unused code Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
- Loading branch information
Showing
11 changed files
with
158 additions
and
54 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
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
Oops, something went wrong.