ThePrimeagen / harpoon

MIT License
6.83k stars 366 forks source link

fix(swapfile): ignore the swapfile-message #575

Open kimabrandt-flx opened 5 months ago

kimabrandt-flx commented 5 months ago

This change supresses the E325: ATTENTION-message - when a swapfile is encountered - by catching the error and stop execution when the user chooses one of (R)ecover, (Q)uit or (A)bort.

This addresses the issues https://github.com/ThePrimeagen/harpoon/issues/444 (?) and https://github.com/ThePrimeagen/harpoon/issues/570.

This duplicates PR #571.

kimabrandt-flx commented 5 months ago

Only problem I see is, that the rest of the function - set position and emit event - is not getting executed, when doing a (R)ecover :\