mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 20:29:01 +00:00
Fix typo in patch logging
This commit is contained in:
@@ -368,8 +368,8 @@ const api = {
|
|||||||
if(failedPatchCount){
|
if(failedPatchCount){
|
||||||
throw (`Patch failure: ${failedPatchCount}/${result[1].length} did not apply`);
|
throw (`Patch failure: ${failedPatchCount}/${result[1].length} did not apply`);
|
||||||
}
|
}
|
||||||
patchedText = decodeURI(result[0]);
|
const patchedText = decodeURI(result[0]);
|
||||||
if(patchedText != brewFromClient.text){
|
if(patchedText !== brewFromClient.text){
|
||||||
debugTextMismatch(brewFromClient.text, patchedText, `edit/${brewFromClient.editId}`);
|
debugTextMismatch(brewFromClient.text, patchedText, `edit/${brewFromClient.editId}`);
|
||||||
throw ('Patches did not apply cleanly, text mismatch detected');
|
throw ('Patches did not apply cleanly, text mismatch detected');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user