Changeset 2213

Show
Ignore:
Timestamp:
03/08/2008 08:06:50 (5 months ago)
Author:
chris
Message:

Log the error code returned by NotifyScript?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.cpp

    r2197 r2213  
    24742474         
    24752475        // Then do it 
    2476         if(::system(script.c_str()) != 0) 
    2477         { 
    2478                 BOX_ERROR("Notify script returned an error code. ('" 
    2479                         << script << "')"); 
     2476        int returnCode = ::system(script.c_str()); 
     2477        if (returnCode != 0) 
     2478        { 
     2479                BOX_ERROR("Notify script returned error code: " << 
     2480                        returnCode << " ('" << script << "')"); 
    24802481        } 
    24812482