function errorMsg( msg ) {
	main.logmsg("*AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA*");
	main.logmsg("*           Error: " + msg);

	try {
		main.logmsg("*           Where: " + thisConnector.getName() );
	} catch (e) { /* do nothing */ }

    try {
		if (error != null && error.getAttribute("connectorname") != null) {
			// main.logmsg("*  Connector name: " + error.getString("connectorname"));
			main.logmsg("*       Operation: " + error.getString("operation"));
			main.logmsg("*         Message: " + error.getString("message"));
			main.logmsg("*       Exception: " + error.getString("exception"));
			// main.logmsg("* Exception class: " + error.getString("class"));
			// main.logmsg("*          Status: " + error.getString("status"));
		} 
	} catch (e) { /* do nothing */ }

	fullDump();
	main.logmsg("*VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV*");
	main.logmsg("");

}




function fullDump() {
	try {
		if (work != null)
			logEntry("WORK", work )
	} catch (e) { /* Do nothing */ }
	try {
		if (conn != null)
			logEntry("CONN", conn )
	} catch (e) { /* Do nothing */ }
	try {
		if (current != null && current != conn)
			logEntry("CURRENT", current )
	} catch (e) { /* Do nothing */ }
}




function logEntry(name,entryObj) {
	main.logmsg("*===================================================*");
    main.logmsg("               " + name);
	main.logmsg("*---------------------------------------------------*");
    main.dumpEntry(entryObj);
}
