add spaces for missing snapshot, fixes #45
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Moritz 2024-01-11 18:34:58 +01:00
parent 65686cd891
commit 0c587ac926
1 changed files with 2 additions and 2 deletions

View File

@ -259,9 +259,9 @@ def list_files(snapshot, path):
output = restic.internal.command_executor.execute(cmd)
except ResticFailedError as error:
if 'no snapshot found' in str(error):
err_msg = f'There is no snapshot {snapshot}'
err_msg = f'There is no snapshot "{snapshot}"'
if SERVICE:
err_msg += f'for the app {SERVICE}'
err_msg += f' for the app "{SERVICE}"'
logger.error(err_msg)
exit(1)
else: