Skip to content

Commit

Permalink
Add filepath to error when extracting non ebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
neilpa authored and acabal committed Jan 13, 2025
1 parent 7a829cf commit e73b29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/commands/extract_ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def extract_ebook(plain_output: bool) -> int:
with zipfile.ZipFile(target, "r") as file:
file.extractall(extracted_path)
else:
se.print_error("File doesn’t look like an epub, mobi, or azw3 file.")
se.print_error(f"File doesn’t look like an epub, mobi, or azw3: [path][link=file://{target}]{target}[/][/].", plain_output=plain_output)
return se.InvalidFileException.code

if args.verbose:
Expand Down

0 comments on commit e73b29b

Please sign in to comment.