better error message for mergeHelpers and setState