]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better error msg
authorEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 18:50:27 +0000 (14:50 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 18:50:27 +0000 (14:50 -0400)
darcs-hash:20080718185027-84dde-f349b9772ec091d8b09bc09405a9ff5660902a2c.gz

maildaemon.php

index c99a3ee48fbe473b1854d4c5adc0ecbd11f9858c..072f895b83d0a863543de74a0ec0f289f338a282 100755 (executable)
@@ -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");
        }
 }