diff options
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index ad8d2868..c8c77952 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -2473,10 +2473,11 @@ void BackupDaemon::NotifySysadmin(int Event) << script << "'"); // Then do it - if(::system(script.c_str()) != 0) + int returnCode = ::system(script.c_str()); + if (returnCode != 0) { - BOX_ERROR("Notify script returned an error code. ('" - << script << "')"); + BOX_ERROR("Notify script returned error code: " << + returnCode << " ('" << script << "')"); } // Flag that this is done so the administrator isn't constantly |