make error message returned as part of value