diff --git a/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs b/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs index 46b6de2b..d7f8b2d7 100644 --- a/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs +++ b/source/nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs @@ -1282,7 +1282,7 @@ public Commands.Monitor_OemInfo.Reply GetMonitorOemInfo() { Commands.Monitor_WriteMemory.Reply cmdReply = reply.Payload as Commands.Monitor_WriteMemory.Reply; - if (!reply.IsPositiveAcknowledge()) + if (!reply.IsPositiveAcknowledge() || cmdReply.ErrorCode != 0) { return (cmdReply.ErrorCode, false); }