source/Tidings-CommonServices.js
function(pMessage, pRequest, pResponse, fNext)
		{
			var tmpSessionID = null;
			if (pRequest.UserSession)
			{
				tmpSessionID = pRequest.UserSession.SessionID;
			}

			_Log.warn('API Error: '+pMessage, {SessionID: tmpSessionID, RequestID:pRequest.RequestUUID, RequestURL:pRequest.url, Action:'APIError'}, pRequest);
			pResponse.send({Error:pMessage});

			return fNext();
		}
function(pMessage, pRequest, pResponse, fNext)
		{
			var tmpSessionID = null;
			if (pRequest.UserSession)
			{
				tmpSessionID = pRequest.UserSession.SessionID;
			}

			_Log.warn('API Error: '+pMessage, {SessionID: tmpSessionID, RequestID:pRequest.RequestUUID, RequestURL:pRequest.url, Action:'APIError'}, pRequest);
			pResponse.send({Error:pMessage});

			return fNext();
		}
function ( pMessage , pRequest , pResponse , fNext ) { var tmpSessionID = null ; if ( pRequest . UserSession ) { tmpSessionID = pRequest . UserSession . SessionID ; } _Log . warn ( 'API Error: ' + pMessage , { SessionID : tmpSessionID , RequestID : pRequest . RequestUUID , RequestURL : pRequest . url , Action : 'APIError' } , pRequest ) ; pResponse . send ( { Error : pMessage } ) ; return fNext ( ) ; }
Send an Error to the client, and log it as an error in the log files.

@method sendError
Send an Error to the client and log it as an error in the log files .