fix #24951: export errors