Skip to content

Commit

Permalink
Add some extra output to the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 23, 2014
1 parent 3702895 commit 5bed6e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Expand Up @@ -300,9 +300,11 @@ public function messageChange($id, Horde_ActiveSync_Message_Base $message)
if ($message->getClass() != $this->_currentCollection['class'] ||
in_array($id, $this->_seenObjects)) {
$this->_logger->err(sprintf(
'[%s] IGNORING message %s since it looks like it was already sent or does not belong to this collection.',
'[%s] IGNORING message %s since it looks like it was already sent or does not belong to this collection. Class: %s, CurrentClass: %s',
$this->_procid,
$id));
$id,
$message->getClass(),
$this->_currentCollection['class']));
return;
}

Expand Down
3 changes: 2 additions & 1 deletion framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -1278,7 +1278,8 @@ public function getMessage($folderid, $id, array $collection)

default:
$this->_endBuffer();
throw new Horde_ActiveSync_Exception('Unsupported type');
throw new Horde_ActiveSync_Exception(sprintf(
'Unsupported type: %s', $folder_class));
}

$this->_endBuffer();
Expand Down

0 comments on commit 5bed6e2

Please sign in to comment.