From 92429ecb1e45aefdbd7d8d15d02af0fe2867a296 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sun, 19 Sep 2021 12:11:56 -0400 Subject: [PATCH] Ignore empty object error acks ("{}") when put()ing --- utils/GunSmith/gun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/GunSmith/gun.js b/utils/GunSmith/gun.js index 39d5e3b8..d4e9239e 100644 --- a/utils/GunSmith/gun.js +++ b/utils/GunSmith/gun.js @@ -232,7 +232,7 @@ const handleMsg = async msg => { /** @type {Smith.GunMsgPut} */ const reply = { ack: { - err: ack.err + err: typeof ack.err === 'string' ? ack.err : undefined }, id: msg.id, path: msg.path,