error catch for empty enclaves