garu / Data-Printer

colored pretty-print of Perl data structures and objects
100 stars 81 forks source link

Old config file was killed #162

Closed KES777 closed 3 years ago

KES777 commented 3 years ago

image

After this .dataprinter becomes empty ((

garu commented 3 years ago

Hi @KES777! Thank you for using Data::Printer and for upgrading to the new version.

Here's what happened:

  1. you created a backup file called .dataprinter.old
  2. your command failed. As a result, unfortunately, your original .dataprinter file was lost and became an empty file. Fortunately you had a backup!
  3. But unfortunately, you ran the original command as-is, which repeats step "1" and thus creates a backup of the (now empty) .dataprinter file into the .dataprinter.old file again. 😱 After the error, you should have just used the second part of the migration command (the one after "&&").

I'm really sorry it happened. Please feel free to submit a documentation patch to help make it clearer to other users what happened and the best way to fix it.

KES777 commented 3 years ago

I understand what happened. It would be nice if you warn users that this may happen.

I'm really sorry it happened. Do not worry about. In my case there were nothing important