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
1 changed files with 1 additions and 0 deletions

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 {