changeset 313:73f5c36ba79c

added error logging in CTRL_GET
author mortenp
date Sat, 04 Sep 2004 01:32:22 +1000
parents 3b07f653af9d
children 2ec35c398074
files src/listcontrol.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/listcontrol.c	Wed Sep 01 18:47:18 2004 +1000
+++ b/src/listcontrol.c	Sat Sep 04 01:32:22 2004 +1000
@@ -266,13 +266,17 @@
 							param);
 			if(stat(archivefilename, &stbuf) < 0)
 				exit(EXIT_SUCCESS);
-			else
+			else {
 				execlp(mlmmjsend, mlmmjsend,
 					"-T", fromemails->emaillist[0],
 					"-L", listdir,
 					"-l", "6",
 					"-m", archivefilename,
 					"-a", "-D", NULL);
+				log_error(LOG_ARGS, "execlp() of '%s' failed",
+							mlmmjsend);
+				exit(EXIT_FAILURE);
+			}
 		}
 		break;
 	}