edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Error message hints displayed weirdly if there is also a source context

Open msullivan opened this issue 3 years ago • 1 comments

asdf> select sequence_next(100);
error: QueryError: function "sequence_next(arg0: std::int64)" does not exist
  ┌─ query:1:8
  │
1 │ select sequence_next(100);
  │        ^^^^^^^^^^^^^^^^^^ Did you want "std::sequence_next(seq: schema::ScalarType)"?

The hint appears on the same line as the carets indicating where the error was, and in red.

msullivan avatar Feb 21 '22 21:02 msullivan

Yes this is by design. I'm not sure we have a good policy of what goes to "hint" and goes to "detail", though. I think we should review that when refactoring errors, since pointer that always says "error" is not great too.

tailhook avatar Feb 22 '22 15:02 tailhook