Skip to content

Commit

Permalink
Clean up error message for unmounting volume that is not actually mou…
Browse files Browse the repository at this point in the history
…nted
  • Loading branch information
mharvilla committed Jan 30, 2024
1 parent 55d0bba commit b04cc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valdi/cli/volume_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ def unmount_volume(mountpoint):
check=True
)
except subprocess.CalledProcessError as e:
print(f'Error unmounting volume: {e.stderr}')
print(f'Error unmounting volume{f": {e.stderr}" if e.stderr is not None else ""}')
sys.exit(1)

0 comments on commit b04cc40

Please sign in to comment.