Commit 28a0f9e038b437b51ab2db19e7c04d7dd90f6e90

Authored by Brendan Klare
1 parent 14ce2fa6

Added Read error message

Showing 1 changed file with 6 additions and 0 deletions
openbr/plugins/misc.cpp
... ... @@ -115,6 +115,9 @@ private:
115 115 void project(const Template &src, Template &dst) const
116 116 {
117 117 dst.file = src.file;
  118 + if (Globals->verbose)
  119 + qDebug("Opening %s", qPrintable(src.file.flat()));
  120 +
118 121 if (src.empty()) {
119 122 const Mat img = imread(src.file.resolved().toStdString(), mode);
120 123 if (img.data) dst.append(img);
... ... @@ -126,6 +129,8 @@ private:
126 129 else dst.file.fte = true;
127 130 }
128 131 }
  132 + if (dst.file.fte)
  133 + qWarning("Error opening %s from %s", qPrintable(file.flat()), qPrintable(QDir::currentPath()));
129 134 }
130 135 };
131 136 BR_REGISTER(Transform, ReadTransform)
... ... @@ -1003,6 +1008,7 @@ class TransposeTransform : public UntrainableTransform
1003 1008  
1004 1009 BR_REGISTER(Transform, TransposeTransform)
1005 1010  
  1011 +
1006 1012 }
1007 1013  
1008 1014 #include "misc.moc"
... ...