fix(json-files): Rejecting promise rather than throwing an error

This commit is contained in:
Chris Troutner
2023-05-09 08:00:30 -07:00
parent 441d898ae7
commit 9912ed7af7
+2 -1
View File
@@ -57,7 +57,8 @@ class JsonFiles {
console.log(`err: ${JSON.stringify(err, null, 2)}`)
}
throw err
// throw err
return reject(err)
}
const obj = JSON.parse(data)