diff --git a/wetb/hawc2/hawc2_simulation.py b/wetb/hawc2/hawc2_simulation.py index 820b1a2604d8633bca0c8ff6c288ba1886e49146..6b704b9f3b526b1195f15d262e25c7f9d7d07cc5 100644 --- a/wetb/hawc2/hawc2_simulation.py +++ b/wetb/hawc2/hawc2_simulation.py @@ -247,11 +247,11 @@ class Hawc2_Simulation(object): if not os.path.isfile(accompanying_file) and not os.path.isdir(accompanying_file): accompanying_file=os.path.join(self.source_directory,accompanying_file) if not os.path.isfile(accompanying_file) and not os.path.isdir(accompanying_file): - raise ValueError('The accompanying file must be contained within the directory of the HTC file, or one of the sub-directories') + raise ValueError('The accompanying file must be contained within the directory of the HTC file, or one of the sub-directories. file: {} not found'.format(accompanying_file)) else: accompanying_file=os.path.abspath(os.path.realpath(accompanying_file)) if not accompanying_file.startswith(self.source_directory): - raise ValueError('The accompanying file must be contained within the directory of the HTC file, or one of the sub-directories') + raise ValueError('The accompanying file must be contained within the directory of the HTC file, or one of the sub-directories. file: {} not found'.format(accompanying_file)) destination=accompanying_file[len(self.source_directory)+1:] self.accompanying_files.append(accompanying_file) self.accompanying_destinations.append(destination)