From 3f90c35bc9d3b40ca8a63c400d9d8ad09bf8d144 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 20 Jan 2022 13:13:04 -0500 Subject: [PATCH] Raise error on missing piece of syncfiles entry --- confluent_server/confluent/syncfiles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/syncfiles.py b/confluent_server/confluent/syncfiles.py index 90df0686..d9586f44 100644 --- a/confluent_server/confluent/syncfiles.py +++ b/confluent_server/confluent/syncfiles.py @@ -205,6 +205,8 @@ def stage_ent(currmap, ent, targdir, appendexist=False): allfents = ent.split() for tmpent in allfents: fents = glob.glob(tmpent) + if not fents: + raise Exception('No matching files for "{}"'.format(tmpent)) everyfent.extend(fents) if not everyfent: raise Exception('No matching files for "{}"'.format(ent))