From 0c587ac9268c5e26691fc5c9932473b03780434e Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 11 Jan 2024 18:34:58 +0100 Subject: [PATCH] add spaces for missing snapshot, fixes #45 --- backupbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backupbot.py b/backupbot.py index c6a4eaa..8b56c40 100755 --- a/backupbot.py +++ b/backupbot.py @@ -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: