@@ -169,13 +169,12 @@ func (d *Server) hello(cmd string) {
169169
170170func (d * Server ) describe () {
171171 if ! d .initialized {
172- d .outputChan <- messageError ("describe" , "Monitor not STARTed " )
172+ d .outputChan <- messageError ("describe" , "Monitor not initialized " )
173173 return
174174 }
175- var portDescription * PortDescriptor
176175 portDescription , err := d .impl .Describe ()
177176 if err != nil {
178- d .outputChan <- messageError ("hello " , err .Error ())
177+ d .outputChan <- messageError ("describe " , err .Error ())
179178 return
180179 }
181180 d .outputChan <- & message {
@@ -187,10 +186,10 @@ func (d *Server) describe() {
187186
188187func (d * Server ) configure (cmd string ) {
189188 if ! d .initialized {
190- d .outputChan <- messageError ("configure" , "Monitor not STARTed " )
189+ d .outputChan <- messageError ("configure" , "Monitor not initialized " )
191190 return
192191 }
193- re := regexp .MustCompile (`^(\w +) (\w +)$` )
192+ re := regexp .MustCompile (`^([\w.-] +) (. +)$` )
194193 matches := re .FindStringSubmatch (cmd )
195194 if len (matches ) != 3 {
196195 d .outputChan <- messageError ("configure" , "Invalid CONFIGURE command" )
@@ -216,8 +215,6 @@ func (d *Server) close() {
216215
217216}
218217
219- func (d * Server ) errorEvent (msg string ) {
220- d .outputChan <- messageError ("start_sync" , msg )
221218}
222219
223220func (d * Server ) outputProcessor (outWriter io.Writer ) {
0 commit comments