Skip to content

Commit

Permalink
🐛 fix(cli): handle sticker creation failure
Browse files Browse the repository at this point in the history
Add error message for failed sticker creation to improve debugging.
  • Loading branch information
sudoskys committed Aug 18, 2024
1 parent f97ce8a commit f4a75c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tsticker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ async def push_to_cloud(
sticker_file.unlink()
else:
console.print(f"[bold red]Failed to upload sticker: {file_name}[/]")
else:
console.print(f"[bold red]Failed to create sticker for file: {file_name}[/]")

# 更新云端文件
with console.status("[bold yellow]Correcting stickers...[/]", spinner='dots') as status:
Expand Down

0 comments on commit f4a75c3

Please sign in to comment.