Skip to content

Commit

Permalink
Fix inverted check in codegenerator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Apr 3, 2024
1 parent 4fba3dd commit ed4bd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decompiler/backend/codegenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ def generate_function(self, task: DecompilerTask) -> str:
def generate_failure_message(task: DecompilerTask):
"""Returns the message to be shown for a failed task."""
msg = f"Failed to decompile {task.name}"
if not (origin := task.failure_origin): # checks if the string is empty (should never be None when this method is called)
if origin := task.failure_origin: # checks if the string is empty (should never be None when this method is called)
msg += f" due to error during {origin}."
return msg

0 comments on commit ed4bd16

Please sign in to comment.