Improved confusing error message.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2776 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
3a86651627
commit
ff2ac65117
|
@ -248,21 +248,21 @@ int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
if ( monitors[i]->PreCapture() < 0 )
|
if ( monitors[i]->PreCapture() < 0 )
|
||||||
{
|
{
|
||||||
Error( "Failed to pre-capture monitor %d", i );
|
Error( "Failed to pre-capture monitor %d (%d/%d)", monitors[i]->Id(), i, n_monitors );
|
||||||
zm_terminate = true;
|
zm_terminate = true;
|
||||||
result = -1;
|
result = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( monitors[i]->Capture() < 0 )
|
if ( monitors[i]->Capture() < 0 )
|
||||||
{
|
{
|
||||||
Error( "Failed to capture monitor %d image", i );
|
Error( "Failed to capture image from monitor %d (%d/%d)", monitors[i]->Id(), i, n_monitors );
|
||||||
zm_terminate = true;
|
zm_terminate = true;
|
||||||
result = -1;
|
result = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( monitors[i]->PostCapture() < 0 )
|
if ( monitors[i]->PostCapture() < 0 )
|
||||||
{
|
{
|
||||||
Error( "Failed to post-capture monitor %d", i );
|
Error( "Failed to post-capture monitor %d (%d/%d)", monitors[i]->Id(), i, n_monitors );
|
||||||
zm_terminate = true;
|
zm_terminate = true;
|
||||||
result = -1;
|
result = -1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue