Skip to content

Commit 07d8ab1

Browse files
Fix error in exception message
1 parent 022f166 commit 07d8ab1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/interface/metadatum_pointer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ class MetadatumPointer: public MetadatumPointerBase {
8484
bool operator!=(const T &other) const {
8585
return &other != **this;
8686
}
87-
// Dereference operator gives access to all datum methods
87+
// Dereference operator gives Python access to all datum methods
8888
T* operator->() const {
8989
T* ptr = **this;
9090
if (!ptr)
91-
throw std::runtime_error(name + " iterator is at end of data");
91+
throw std::runtime_error("iterator is at end of data");
9292
return ptr;
9393
}
9494
};

src/swig-0_27_7/metadatum_pointer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ class MetadatumPointer: public MetadatumPointerBase {
8484
bool operator!=(const T &other) const {
8585
return &other != **this;
8686
}
87-
// Dereference operator gives access to all datum methods
87+
// Dereference operator gives Python access to all datum methods
8888
T* operator->() const {
8989
T* ptr = **this;
9090
if (!ptr)
91-
throw std::runtime_error(name + " iterator is at end of data");
91+
throw std::runtime_error("iterator is at end of data");
9292
return ptr;
9393
}
9494
};

src/swig-0_28_7/metadatum_pointer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ class MetadatumPointer: public MetadatumPointerBase {
8484
bool operator!=(const T &other) const {
8585
return &other != **this;
8686
}
87-
// Dereference operator gives access to all datum methods
87+
// Dereference operator gives Python access to all datum methods
8888
T* operator->() const {
8989
T* ptr = **this;
9090
if (!ptr)
91-
throw std::runtime_error(name + " iterator is at end of data");
91+
throw std::runtime_error("iterator is at end of data");
9292
return ptr;
9393
}
9494
};

0 commit comments

Comments
 (0)