mamba-org / resolvo

Fast package resolver written in Rust (CDCL based SAT solving)
BSD 3-Clause "New" or "Revised" License
154 stars 13 forks source link

feat: improved indentation in error messages #30

Closed baszalmstra closed 7 months ago

baszalmstra commented 7 months ago

I extracted the new indentation code from #28

Old

The following packages are incompatible
|-- a * cannot be installed because there are no viable options:
    |-- a 2 would require
        |-- b *, which cannot be installed because there are no viable options:
            |-- b 1 is excluded because it is externally excluded
    |-- a 1 would require
        |-- c *, which cannot be installed because there are no viable options:
            |-- c 1 is excluded because it is externally excluded

New

The following packages are incompatible
└─ a * cannot be installed because there are no viable options:
   ├─ a 2 would require
   │  └─ b *, which cannot be installed because there are no viable options:
   │     └─ b 1 is excluded because it is externally excluded
   └─ a 1 would require
      └─ c *, which cannot be installed because there are no viable options:
         └─ c 1 is excluded because it is externally excluded