Make error message more obvious

This commit is contained in:
Orsiris de Jong 2023-04-22 13:37:03 +02:00
parent b711e52c5f
commit 0a549a8ae1

View file

@ -399,7 +399,7 @@ class NPBackupRunner:
paths = [paths] paths = [paths]
for path in paths: for path in paths:
if path == self.config_dict["repo"]["repository"]: if path == self.config_dict["repo"]["repository"]:
logger.critical("Rayan error 40: You cannot backup destination in destination path. No inception allowed !") logger.critical("You cannot backup source into it's own path. No inception allowed !")
return False return False
except KeyError: except KeyError:
logger.error("No backup source path given.") logger.error("No backup source path given.")