sting-ioc / sting

https://sting-ioc.github.io
Apache License 2.0
8 stars 0 forks source link

Consider how to improve error messages #45

Open realityforge opened 4 years ago

realityforge commented 4 years ago

When we initially worked on the error messages we tried to improve on the state of play compared to dagger but it is unclear that we have achieved this improvement. With release 2.27 dagger improved their error output and incidentally incorporated some similar strategies to Sting. We should asses their changes and incorporate any we like.

In particular, they use a shorted class name to identify errors like sting but they also have a legend in the output that translates the short name to a long classname. They also added color to their error messages that may have a significant advantage in some terminal environments. We will need to try it out and see how it works. They also use a unicode arrow between injection points which is quite neat.