append result and error