Add error info for missing URI in attention

This commit is contained in:
Evan Prodromou 2010-02-21 22:44:58 -05:00
parent 13fb7bef78
commit 232b5efa7e

View File

@ -81,6 +81,7 @@ class UsersalmonAction extends SalmonAction
}
} else if (!empty($context->attention)) {
if (!in_array($this->user->uri, $context->attention)) {
common_log(LOG_ERR, "{$this->user->uri} not in attention list (".implode(',', $context->attention).")");
throw new ClientException("To the attention of user(s) not including this one!");
}
} else {