node-flyway
node-flyway copied to clipboard
Log input string when JSON parsing fails (fixes domdinnes#32)
Fix: Add Logging for Unparseable JSON Responses
Description
This PR addresses issue #32, which reports errors when users run commands through the wrapper, resulting in unparseable JSON responses.
Changes Made
-
Error Handling: Added logging for unparseable JSON responses to aid in troubleshooting.
- Modified the first
JSON.parseattempt to log the raw response if aSyntaxErroris caught.
- Modified the first