diff --git a/src/spikeinterface/core/waveform_extractor.py b/src/spikeinterface/core/waveform_extractor.py index a2b58daa24..c97a727340 100644 --- a/src/spikeinterface/core/waveform_extractor.py +++ b/src/spikeinterface/core/waveform_extractor.py @@ -276,7 +276,7 @@ def create( if remove_if_exists: shutil.rmtree(folder) else: - raise FileExistsError("Folder already exists") + raise FileExistsError(f"Folder {folder} already exists") folder.mkdir(parents=True) if use_relative_path: