Commit f5b4145
committed
info: Don't show empty link when upload fails
pastebin can return an empty link instead of an exception when
the upload fails.
If the link is empty raise an exception.
Also, fix the exception handling. There were one too many arguments
in the notify-send call. We don't need to get the exact pastebin
error here. It uses nc underneath which isn't relevant to the user.
The actual error is displayed in the terminal if needed.1 parent 0be7658 commit f5b4145
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
| 526 | + | |
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
528 | | - | |
529 | | - | |
| 530 | + | |
| 531 | + | |
530 | 532 | | |
531 | 533 | | |
532 | 534 | | |
| |||
0 commit comments