Skip to content

Commit a9ce779

Browse files
committed
correct error message and add todo
copy and paste error
1 parent 058ee09 commit a9ce779

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bindings/cpp/NeXusFile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ AttrInfo File::getNextAttr() {
11311131
return info;
11321132
}
11331133

1134+
// TODO - AttrInfo cannot handle more complex ranks/dimensions, we need to throw an error
11341135
std::cerr << "ERROR iterating through attributes found array attribute not understood by this api" << std::endl;
11351136
throw Exception("getNextAttr failed", NX_ERROR);
11361137
}
@@ -1141,7 +1142,7 @@ AttrInfo File::getNextAttr() {
11411142
return info;
11421143
}
11431144
else {
1144-
throw Exception("NXgetnextattr failed", status);
1145+
throw Exception("NXgetnextattra failed", status);
11451146
}
11461147
}
11471148

0 commit comments

Comments
 (0)