qvm
qvm copied to clipboard
bad error message for `echo foo.quil | qvm`
An error in the wild, someone echo
ing instead of cat
ing, leads to the following:
$ echo foo.quil | qvm
******************************
* Welcome to the Rigetti QVM *
******************************
Copyright (c) 2016-2019 Rigetti Computing.
(Configured with 8192 MiB of workspace and 8 workers.)
! ! ! Condition raised: Couldn't find match at position 3 within the lexer CL-QUIL::LINE-LEXER.
This is of course sensible in its behavior, but the error message is awful and should be more helpful.
Hello I am interested in working on this.
Hello that would be great! What would a good error message look like?
FWIW, the error message has improved since the creation of this issue:
$ echo test.quil | qvm --log-level emerg --quiet
! ! ! Condition raised: At line 1: unexpected input text "." in "test.quil"
It could be clearer however by having QVM report that it is trying to parse the string from stdin, rather than from the file.