diff --git a/DetectorDescription/IdDictParser/test/tid.cxx b/DetectorDescription/IdDictParser/test/tid.cxx
index 71a75efb57fad78d4d1fc7ebe71ceb33e22083b0..c810e16c3beac39e692b66e19f2e7852f2ef4458 100755
--- a/DetectorDescription/IdDictParser/test/tid.cxx
+++ b/DetectorDescription/IdDictParser/test/tid.cxx
@@ -97,7 +97,10 @@ int main (int argc, char* argv[])
  
 //  	    IdDictDictionary::bits32 b = dictionary->pack32 (id, 0, 6); 
 	Identifier packedB((Identifier::value_type)0);
-	dictionary->pack32 (id, 0, 6, packedB); 
+	if (dictionary->pack32 (id, 0, 6, packedB) != 0) {
+          std::cout << "error from pack32\n";
+          return 1;
+        }
  
         std::cout << "b=[" << packedB << "]" << std::endl;