Skip to content

Commit

Permalink
Add explicit warning for --entry
Browse files Browse the repository at this point in the history
  • Loading branch information
HNYuuu committed Jun 29, 2024
1 parent d01dc69 commit ddc335b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seewasm/arch/wasm/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ddc335b

Please sign in to comment.