Skip to content

Commit 5cdf85c

Browse files
committed
Added a clearer error message in the log of the output
1 parent 2278cce commit 5cdf85c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Modules/Cluster.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,12 +622,16 @@ def prepare_input_file(self, structures, calc, labels):
622622

623623
list_of_inputs.append(input_file)
624624
list_of_outputs.append(output_file)
625-
except:
625+
except Exception as e:
626626
MSG = '''
627627
Error while writing input file {}.
628+
629+
Error message:
628630
'''.format(label)
631+
MSG += str(e)
629632
print(MSG)
630633

634+
631635
# Release the lock on the threads
632636
self.lock.release()
633637

0 commit comments

Comments
 (0)