marshal err.Error() if err not has export field