Skip to content
  • Gari Singh's avatar
    [FAB-5141] configtxgen --version should not panic · d4adf7ab
    Gari Singh authored
    
    
    If configtxgen cannot find a configtx.yaml file,
    it panics.  While this in and of itself is ok,
    it should not panic when simply trying to get the
    version.
    
    Two changes were made:
    
    - move response to --version above all other flags
    - added a defer / recover function to better handle
    config not found and make things more clear
    
    Change-Id: I512d1fed464c734db7178eb576440c45767f6994
    Signed-off-by: default avatarGari Singh <gari.r.singh@gmail.com>
    d4adf7ab