diff --git a/wetb/hawc2/hawc2_simulation.py b/wetb/hawc2/hawc2_simulation.py index 0d13cd73f49f19582f4b509ae2b706d94344bcd6..1e3096f0a339eb8c1987b9c58f676c884e0429fc 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)