diff --git a/wetb/hawc2/hawc2_simulation.py b/wetb/hawc2/hawc2_simulation.py index 36168ae604a7ab5122f12c1d87d62a7c59a37bf8..ab3937eb85ced41803afad968861e39d6c25da99 100644 --- a/wetb/hawc2/hawc2_simulation.py +++ b/wetb/hawc2/hawc2_simulation.py @@ -237,6 +237,7 @@ class Hawc2_Simulation(object): is_good = True else: file_obj.written_file = file_obj.original_file + # Now write the HTC file self.input_files['htc'][0].written_file = os.path.join(self.write_directory, self.source_name) fout = open_file_in_dir(self.input_files['htc'][0].written_file, 'wb') @@ -274,7 +275,7 @@ class Hawc2_Simulation(object): 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)