layer more debug msg
authorYangqing Jia <jiayq84@gmail.com>
Mon, 30 Sep 2013 16:26:08 +0000 (09:26 -0700)
committerYangqing Jia <jiayq84@gmail.com>
Mon, 30 Sep 2013 16:26:08 +0000 (09:26 -0700)
src/caffe/layers/data_layer.cpp

index 442a359f50a4caba3dda5c1aa63defb672aa8c4c..e527bd3a2d036945bea3feb87818f55f7a244c18 100644 (file)
@@ -25,7 +25,8 @@ void DataLayer<Dtype>::SetUp(const vector<Blob<Dtype>*>& bottom,
   LOG(INFO) << "Opening leveldb " << this->layer_param_.source();
   leveldb::Status status = leveldb::DB::Open(
       options, this->layer_param_.source(), &db_temp);
   LOG(INFO) << "Opening leveldb " << this->layer_param_.source();
   leveldb::Status status = leveldb::DB::Open(
       options, this->layer_param_.source(), &db_temp);
-  CHECK(status.ok());
+  CHECK(status.ok()) << "Failed to open leveldb "
+      << this->layer_param_.source();
   db_.reset(db_temp);
   iter_.reset(db_->NewIterator(leveldb::ReadOptions()));
   iter_->SeekToFirst();
   db_.reset(db_temp);
   iter_.reset(db_->NewIterator(leveldb::ReadOptions()));
   iter_->SeekToFirst();