mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [3/4] incubator-mynewt-core git commit: imgmgr - Send error response when split op fails.
Date Mon, 16 Jan 2017 22:22:46 GMT
imgmgr - Send error response when split op fails.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/0dd24d46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/0dd24d46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/0dd24d46

Branch: refs/heads/develop
Commit: 0dd24d464faf9e6d0cc9747cdc71d17c0de2342c
Parents: 22d8783
Author: Christopher Collins <ccollins@apache.org>
Authored: Mon Jan 16 12:25:26 2017 -0800
Committer: Christopher Collins <ccollins@apache.org>
Committed: Mon Jan 16 14:21:46 2017 -0800

----------------------------------------------------------------------
 mgmt/imgmgr/src/imgmgr_state.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0dd24d46/mgmt/imgmgr/src/imgmgr_state.c
----------------------------------------------------------------------
diff --git a/mgmt/imgmgr/src/imgmgr_state.c b/mgmt/imgmgr/src/imgmgr_state.c
index c2beda8..ee7d76c 100644
--- a/mgmt/imgmgr/src/imgmgr_state.c
+++ b/mgmt/imgmgr/src/imgmgr_state.c
@@ -176,6 +176,9 @@ imgmgr_state_set_pending(int slot, int permanent)
             } else {
                 rc = split_write_split(SPLIT_MODE_TEST_LOADER);
             }
+            if (rc != 0) {
+                return MGMT_ERR_EUNKNOWN;
+            }
         }
     } else {
         /* Testing split app. */


Mime
View raw message