npm - handle json decode exception (#1625)

* Provide a user friendly message by handling json decode
  exception rather than providing a stacktrace

Fixes: #1614

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde
2021-01-14 18:48:41 +05:30
committed by GitHub
parent 9f4fd4c899
commit a9c64655de
3 changed files with 92 additions and 16 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- npm - handle json decode exception while parsing command line output (https://github.com/ansible-collections/community.general/issues/1614).