From ddc335bc56a2d543bc0ad746dced246035c3b7f2 Mon Sep 17 00:00:00 2001 From: Ningyu He Date: Sat, 29 Jun 2024 12:47:55 +0800 Subject: [PATCH] Add explicit warning for --entry --- seewasm/arch/wasm/emulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seewasm/arch/wasm/emulator.py b/seewasm/arch/wasm/emulator.py index 3fe23fca..c6e79300 100644 --- a/seewasm/arch/wasm/emulator.py +++ b/seewasm/arch/wasm/emulator.py @@ -62,7 +62,7 @@ def __init__(self, bytecode): if Configuration.get_entry() not in Configuration.get_func_index_to_func_name().values(): exit( - f"Your designated entry: {Configuration.get_entry()} does not exist.\nPlease assign another by '--entry'") + f"Your designated entry: {Configuration.get_entry()} does not exist.\nThere are functions: {list(Configuration.get_func_index_to_func_name().values())}\nPlease assign one of them by '--entry'") # build call graph self.cfg.build_call_graph(self.ana)