A fast, helpful, and open-source document parser
fix: propagate stderr on JSONDecodeError path in _get_parse_result
LACCD145f768b2129
diff --git a/packages/python/liteparse/parser.py b/packages/python/liteparse/parser.pyindex 2ca0b54..a74ade4 100644--- a/packages/python/liteparse/parser.py+++ b/packages/python/liteparse/parser.py@@ -340,7 +340,10 @@ class LiteParse:json_data = json.loads(stdout.decode("utf-8"))return _parse_json_result(json_data)except json.JSONDecodeError as e:- raise ParseError(f"Failed to parse CLI output: {e}")+ raise ParseError(+ f"Failed to parse CLI output: {e}",+ stderr=stderr.decode("utf-8"),+ )@staticmethoddef _get_screenshot_result(