HalosGhost / pbpst

A command-line libcurl C client for pb deployments
GNU General Public License v2.0
44 stars 9 forks source link

pbpst returns with no message on use of -Sf with existing vanity pastes #56

Closed AladW closed 8 years ago

AladW commented 8 years ago

The right option of course is -Uf, as documented in the man page. However, when using -Sf on a paste with existing vanity URL, pbpst returns 1, without error message.

archie@thinkpad ~/aurqueue % pbpst -Sf makequeue -v makequeue          
archie@thinkpad ~/aurqueue % !!                                      
pbpst -Sf makequeue -v makequeue
pbpst: Could not create the swap db: File exists
pbpst: Ensure no other instances of pbpst are running and that all pastes have been saved
pbpst: Then manually remove: /home/archie/.config/pbpst/.db.json.swp

strace: https://ptpb.pw/Zwfl

(version: v1.0.0.r7.ga391b3e-1)

HalosGhost commented 8 years ago

via e23a751 and e20410e