Skip to content

Commit 1ac7476

Browse files
Add REPL support for variable bindings
1 parent 5a5be44 commit 1ac7476

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

repl/evaluator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ func newExtensionOption(extType string) (*extensionOption, error) {
711711
case "encoders":
712712
extOption = ext.Encoders()
713713
default:
714-
return nil, fmt.Errorf("Unknown option: %s. Available options are: ['strings', 'protos', 'math', 'encoders', 'all']", op)
714+
return nil, fmt.Errorf("Unknown option: %s. Available options are: ['bindings', 'optional', 'strings', 'protos', 'math', 'encoders', 'all']", op)
715715
}
716716

717717
return &extensionOption{extensionType: extType, option: extOption}, nil

repl/evaluator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ func TestProcessOptionError(t *testing.T) {
864864
"'bogus'",
865865
},
866866
},
867-
errorMsg: "extension: Unknown option: 'bogus'. Available options are: ['strings', 'protos', 'math', 'encoders', 'all']",
867+
errorMsg: "extension: Unknown option: 'bogus'. Available options are: ['bindings', 'optional', 'strings', 'protos', 'math', 'encoders', 'all']",
868868
},
869869
}
870870

0 commit comments

Comments
 (0)