From 1378f80dde9fe0dbbc825e001cd1c6e147986729 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 18 Jul 2008 14:50:27 -0400 Subject: [PATCH] better error msg darcs-hash:20080718185027-84dde-f349b9772ec091d8b09bc09405a9ff5660902a2c.gz --- maildaemon.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maildaemon.php b/maildaemon.php index c99a3ee48f..072f895b83 100755 --- a/maildaemon.php +++ b/maildaemon.php @@ -141,17 +141,17 @@ class MailerDaemon { $msg = $parsed->body; break; default: - $this->unsupported_type(); + $this->unsupported_type($parsed); } default: - $this->unsupported_type(); + $this->unsupported_type($parsed); } return array($from, $to, $msg); } - function unsupported_type() { - $this->error(NULL, "Unsupported message type"); + function unsupported_type($parsed) { + $this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n"); } }