This commit is contained in:
Taylor Bantle
2024-09-24 12:33:19 -07:00
parent fe058080de
commit 710d4cb612

View File

@@ -285,10 +285,13 @@ func CleanUntracked(ctx *sql.Context, roots doltdb.Roots, tables []string, dryru
for i := range tables {
name := tables[i]
resolvedName, _, _, err := resolve.Table(ctx, roots.Working, name)
resolvedName, _, tblExists, err := resolve.Table(ctx, roots.Working, name)
if err != nil {
return doltdb.Roots{}, err
}
if !tblExists {
return doltdb.Roots{}, fmt.Errorf("%w: '%s'", doltdb.ErrTableNotFound, name)
}
untrackedTables[resolvedName] = struct{}{}
}