You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/03/09 21:24:03 UTC

[48/50] incubator-mynewt-newt git commit: Fix returned error type in case of file not existing.

Fix returned error type in case of file not existing.


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

Branch: refs/heads/develop
Commit: e5eaa6a77fc973e728cbbb0f3874639311d7833c
Parents: e49f113
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Mar 9 09:58:53 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Mar 9 10:02:33 2016 -0800

----------------------------------------------------------------------
 newt/builder/size.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/e5eaa6a7/newt/builder/size.go
----------------------------------------------------------------------
diff --git a/newt/builder/size.go b/newt/builder/size.go
index 769dba4..624f6a9 100644
--- a/newt/builder/size.go
+++ b/newt/builder/size.go
@@ -112,7 +112,8 @@ func ParseMapFileSizes(fileName string) (map[string]*PkgSize, map[string]*MemSec
 
 	file, err := os.Open(fileName)
 	if err != nil {
-		return nil, nil, err
+		return nil, nil,
+			util.NewNewtError("Mapfile failed: "+ err.Error())
 	}
 
 	memSections := make(map[string]*MemSection)