onerror handler for default project