Using Alpha 0.3.0 wipe command, if summary does not exist wipe command fails with an error

Issue Report

Reported By @jrwashburn in Discord Here: Discord

Environment

  • Operating System:
  • CPU Architecture:
  • RAM:
  • Storage:
  • Plot Size:
  • Subspace Deployment Method:

Problem

Using Alpha 0.3.0 wipe command, if summary does not exist wipe command fails with an error.

./subspace-cli-ubuntu-x86_64-v3-v0.3.0-alpha wipe
Do you want to wipe farmer (delete plot)? [y/n]: y
Do you want to wipe node? [y/n]: y
Do you want to wipe summary? [y/n]: y
Do you want to wipe config? [y/n]: n
wiping node...
wiping farmer...
Error: couldn't delete summary file

Caused by:
    No such file or directory (os error 2)

Location:
    src/summary.rs:202:33

Steps to reproduce

  1. Download 0.3.0 Release
  2. Do Not Init
  3. Attempt Wipe

Expected result

  • Simple no dir found response with no crash

What happens instead

  • Errors out while attempting wipe.
Error: couldn't delete summary file

Caused by:
    No such file or directory (os error 2)

Location:
    src/summary.rs:202:33

@Ozgun mind taking a look, not a major error but probably a better way to handle this

Will take care of this, thanks!