@@ -169,13 +169,12 @@ func (d *Server) hello(cmd string) {
169
169
170
170
func (d * Server ) describe () {
171
171
if ! d .initialized {
172
- d .outputChan <- messageError ("describe" , "Monitor not STARTed " )
172
+ d .outputChan <- messageError ("describe" , "Monitor not initialized " )
173
173
return
174
174
}
175
- var portDescription * PortDescriptor
176
175
portDescription , err := d .impl .Describe ()
177
176
if err != nil {
178
- d .outputChan <- messageError ("hello " , err .Error ())
177
+ d .outputChan <- messageError ("describe " , err .Error ())
179
178
return
180
179
}
181
180
d .outputChan <- & message {
@@ -187,10 +186,10 @@ func (d *Server) describe() {
187
186
188
187
func (d * Server ) configure (cmd string ) {
189
188
if ! d .initialized {
190
- d .outputChan <- messageError ("configure" , "Monitor not STARTed " )
189
+ d .outputChan <- messageError ("configure" , "Monitor not initialized " )
191
190
return
192
191
}
193
- re := regexp .MustCompile (`^(\w +) (\w +)$` )
192
+ re := regexp .MustCompile (`^([\w.-] +) (. +)$` )
194
193
matches := re .FindStringSubmatch (cmd )
195
194
if len (matches ) != 3 {
196
195
d .outputChan <- messageError ("configure" , "Invalid CONFIGURE command" )
@@ -216,8 +215,6 @@ func (d *Server) close() {
216
215
217
216
}
218
217
219
- func (d * Server ) errorEvent (msg string ) {
220
- d .outputChan <- messageError ("start_sync" , msg )
221
218
}
222
219
223
220
func (d * Server ) outputProcessor (outWriter io.Writer ) {
0 commit comments