Skip to content

Commit bdf4592

Browse files
authored
dash: Return empty migration history if no cluster is found (#2155)
1 parent e778598 commit bdf4592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/daemon/dash/dash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (h *handler) Handle(ctx context.Context, reply jsonrpc2.Replier, r jsonrpc2
321321
clusterType := sqldb.Run
322322
cluster, ok := h.run.ClusterMgr.Get(sqldb.GetClusterID(app, clusterType, namespace))
323323
if !ok {
324-
return reply(ctx, nil, fmt.Errorf("failed to get database cluster of type %s", clusterType))
324+
return reply(ctx, []dbMigrationHistory{}, nil)
325325
}
326326

327327
status := buildDbMigrationStatus(ctx, appMeta, cluster)

0 commit comments

Comments
 (0)