core/format: use common format parsing error