mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 02:59:34 -06:00
Don't ignore spec split error in ForDatasetOpts
This commit is contained in:
@@ -90,6 +90,9 @@ func ForDataset(spec string) (Spec, error) {
|
||||
// ForDatasetOpts parses a spec for a Dataset.
|
||||
func ForDatasetOpts(spec string, opts SpecOptions) (Spec, error) {
|
||||
dbSpec, pathStr, err := splitDatabaseSpec(spec)
|
||||
if err != nil {
|
||||
return Spec{}, err
|
||||
}
|
||||
|
||||
sp, err := newSpec(dbSpec, opts)
|
||||
if err != nil {
|
||||
|
||||
@@ -91,7 +91,7 @@ func TestMemDatasetPathSpec(t *testing.T) {
|
||||
|
||||
db := spec.GetDatabase()
|
||||
ds := db.GetDataset("test")
|
||||
ds, err = db.CommitValue(ds, types.NewList(db, types.Number(42)))
|
||||
_, err = db.CommitValue(ds, types.NewList(db, types.Number(42)))
|
||||
assert.NoError(err)
|
||||
|
||||
assert.Equal(types.Number(42), spec.GetValue())
|
||||
|
||||
Reference in New Issue
Block a user