added error callback to getpendingnotifications