fix: Replace error message with raw exception

This commit is contained in:
Paul Gauthier 2024-08-22 06:40:02 -07:00 committed by Paul Gauthier (aider)
parent cb7879a89a
commit ac5667696c

View file

@ -48,7 +48,7 @@ def process_markdown(filename):
except FileNotFoundError:
print(json.dumps({"error": f"File '{filename}' not found."}, indent=4))
except Exception as e:
print(json.dumps({"error": f"An error occurred: {str(e)}"}, indent=4))
print(e)
if __name__ == "__main__":