From: Evan Prodromou Date: Fri, 18 Jul 2008 18:50:27 +0000 (-0400) Subject: better error msg X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1378f80dde9fe0dbbc825e001cd1c6e147986729;p=quix0rs-gnu-social.git better error msg darcs-hash:20080718185027-84dde-f349b9772ec091d8b09bc09405a9ff5660902a2c.gz --- 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"); } }