Merge "applypatch: Add determine the return value of ApplyDiffPatch and capture the error flow."