better error msg
darcs-hash:20080718185027-84dde-f349b9772ec091d8b09bc09405a9ff5660902a2c.gz
This commit is contained in:
parent
de6867a077
commit
1378f80dde
|
@ -141,17 +141,17 @@ class MailerDaemon {
|
||||||
$msg = $parsed->body;
|
$msg = $parsed->body;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$this->unsupported_type();
|
$this->unsupported_type($parsed);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
$this->unsupported_type();
|
$this->unsupported_type($parsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
return array($from, $to, $msg);
|
return array($from, $to, $msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function unsupported_type() {
|
function unsupported_type($parsed) {
|
||||||
$this->error(NULL, "Unsupported message type");
|
$this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user