Ideas to reduce error message size?

Paolo Invernizzi paolo.invernizzi at gmail.com
Wed Aug 30 09:24:21 UTC 2023


Hello everybody,

If a compilation error is thrown with CTFE involved, the 'called 
from here' is like:

  ```
src/api3.d(2010): Error: uncaught CTFE exception 
`object.Exception("42703: column \"system_timestamp_ms\" does not 
exist. SQL: select coalesce(count(system_timestamp_ms),0) from 
dev_samples where device_id = $1")`
src/api3.d(39):        thrown from here
src/api3.d(49):        called from here: 
`checkSql(Schema("public",  <snip **BAZILLIONS of lines**>
src/dget/db.d(276): Error: template instance 
`api3.forgeSqlCheckerForSchema!(Schema("public", <snip 
**BAZILLIONS of lines**>  error instantiating
  ```

Simple question: there's a pattern to reduce the outputted stuff 
someway? Everything is related to a single struct, `Schema`, used 
during compile time stuff.

Thank you,
Paolo


More information about the Digitalmars-d-learn mailing list