Proper error handling if requested layer is not known