You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h.logger.Warn("Migration mode is invalid", tag.ShardNamespace(request.Namespace), tag.ShardExecutor(request.ExecutorID))
62
-
returnnil, fmt.Errorf("migration mode is invalid")
61
+
returnnil, &types.InternalServiceError{Message: fmt.Sprintf("namespace's migration mode is invalid: %v", err)}
63
62
casetypes.MigrationModeLOCALPASSTHROUGH:
64
63
h.logger.Warn("Migration mode is local passthrough, no calls to heartbeat allowed", tag.ShardNamespace(request.Namespace), tag.ShardExecutor(request.ExecutorID))
65
-
returnnil, fmt.Errorf("migration mode is local passthrough")
64
+
returnnil, &types.BadRequestError{Message: "migration mode is local passthrough, no calls to heartbeat allowed"}
0 commit comments