From 3fc9aedc2bc1d3704a90e059fa34ec48451e097b Mon Sep 17 00:00:00 2001 From: wargio Date: Wed, 22 May 2024 20:35:27 +0800 Subject: [PATCH] Print filename when assert. --- src/cparser_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cparser_header.py b/src/cparser_header.py index 8532df4..f806976 100644 --- a/src/cparser_header.py +++ b/src/cparser_header.py @@ -98,7 +98,7 @@ def __init__(self, name: str): assert rizin_include_path filename = os.path.abspath(os.path.join(rizin_include_path, *name_segments)) - assert os.path.exists(filename) + assert os.path.exists(filename), f"File {filename} does not exist" self.filename = filename # Parse ht_inc.h if importing SDB hashtable header