expr: better error messaging behind length