Marko Kiiskila created MYNEWT-622:
-------------------------------------

             Summary: newtmgr crashes when trying to download core without 
filename
                 Key: MYNEWT-622
                 URL: https://issues.apache.org/jira/browse/MYNEWT-622
             Project: Mynewt
          Issue Type: Bug
    Affects Versions: v1_0_0_beta2
            Reporter: Marko Kiiskila


[marko@IsMyLaptop:~/src8/incubator-mynewt-blinky/repos/apache-mynewt-core]$ 
newtmgr -c AL01QIP7 image coredownload
panic: interface conversion: error is *errors.errorString, not *util.NewtError

goroutine 1 [running]:
panic(0x4539fc0, 0xc4200102c0)
        /usr/local/go/src/runtime/panic.go:500 +0x1a1
mynewt.apache.org/newt/newtmgr/cli.nmUsage(0xc420178900, 0x4844fa0, 
0xc42004fc60)
        /Users/marko/newt/src/mynewt.apache.org/newt/newtmgr/cli/usage.go:34 
+0x2ce
mynewt.apache.org/newt/newtmgr/cli.coreDownloadCmd(0xc420178900, 0xc420012960, 
0x0, 0x2)
        /Users/marko/newt/src/mynewt.apache.org/newt/newtmgr/cli/image.go:393 
+0xb0
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).execute(0xc420178900,
 0xc420012700, 0x2, 0x2, 0xc420178900, 0xc420012700)
        
/Users/marko/newt/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:636
 +0x443
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc420176000,
 0xc420176480, 0xc420176240, 0xc42016f000)
        
/Users/marko/newt/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:722
 +0x367
mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra.(*Command).Execute(0xc420176000,
 0x40d711c, 0xc4200001a0)
        
/Users/marko/newt/src/mynewt.apache.org/newt/newtmgr/vendor/github.com/spf13/cobra/command.go:681
 +0x2b
main.main()
        /Users/marko/newt/src/mynewt.apache.org/newt/newtmgr/newtmgr.go:25 +0x2f
exit status 2




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to