Open pickfire opened 3 years ago
The current plan is to copy the output of anyhow
, where the first error gets put on the same line, then there's a caused by section which only gets numbered if there are more than 1 source errors. As for the including the path, mara is working on that right now but we probably can't add it to the display impl without duplicating information massively across the ecosystem.
It's okay not to change the first line, but I think the 0
, 1
thing is also hard to understand from someone not familiar with rust at first look. At least for me, I cannot differentiate between them easily, it's as bad as not putting in the extra numbers.
As a user, I will likely be confused what is
0
,1
. Is0
nearer to exit or nearer to the source of error? Maybe rather than0
we putsource
orsink
? What about putting the source for each error to be clearer?What about this? What about attaching more context to each path? Like instead of getting
Path not found', it will say
XXX Path not found`?