mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
{nodejs,bowerjs}-project-mode: stop error if json is malformed
This commit is contained in:
@ -128,7 +128,7 @@
|
||||
(package-file (f-expand "package.json" project-path))
|
||||
deps)
|
||||
(awhen (and (not hash) (f-exists? package-file)
|
||||
(json-read-file package-file))
|
||||
(ignore-errors (json-read-file package-file)))
|
||||
(puthash project-path it npm-conf)))
|
||||
t))
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
||||
(package-file (f-expand "bower.json" project-path))
|
||||
deps)
|
||||
(awhen (and (not hash) (f-exists? package-file)
|
||||
(json-read-file package-file))
|
||||
(ignore-errors (json-read-file package-file)))
|
||||
(puthash project-path it bower-conf)))
|
||||
t))
|
||||
|
||||
|
Reference in New Issue
Block a user