Improved error message.

This commit is contained in:
Davis King 2018-01-29 09:17:58 -05:00
parent b1589d2b34
commit 68c98498b6

View File

@ -2302,7 +2302,10 @@ namespace dlib
DLIB_CASSERT(scales.num_samples() == src.num_samples() &&
scales.k() == src.k() &&
scales.nr() == 1 &&
scales.nc() == 1 );
scales.nc() == 1,
"scales.k(): " << scales.k() <<
"\nsrc.k(): " << src.k()
);
output.copy_size(src);
tt::scale_channels(false, output, src, scales);