Skip to content

Commit 8a73743

Browse files
committed
NWB_ExportAllData: Check that we have data for the requested device
1 parent 2b7fd08 commit 8a73743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Packages/MIES/MIES_NeuroDataWithoutBorders.ipf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ Function NWB_ExportAllData(variable nwbVersion, [string device, string overrideF
655655
endfor
656656

657657
if(!ParamIsDefault(device))
658+
ASSERT(GetRowIndex(devicesWithContent, str = device) >= 0, "Could not find data for device: " + device)
658659
Make/FREE/T devicesWithContent = {device}
659660
endif
660661

0 commit comments

Comments
 (0)