improve error report for base. Fixes #380.