Make error message more readable

This commit is contained in:
Alan Bernstein 2017-04-25 13:31:43 -05:00
parent e68e006dca
commit 1326fe120c

View file

@ -101,6 +101,8 @@ class REPL {
result_class = "result-error"
if(output_json['error'] == 'database not found') { // TODO db->index
output_string = `Error: index not found<br />
<br />
Just getting started? Try this:<br />
$ curl -XPOST "http://127.0.0.1:10101/db/test" -d '{"options": {"columnLabel": "col"}}' # create a database<br />
$ curl -XPOST "http://127.0.0.1:10101/db/test/frame/foo" -d '{"options": {"rowLabel": "row"}}' # create a frame<br />
SetBit(row=0, col=0, frame=foo) # Use PQL to set a bit