Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-17752

Return KeyStore error when making directory failed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • v1.4.6
    • v1.4.7
    • fabric-crypto
    • None
    • (Please add steps to reproduce)

    Description

      Errors should not be ignored when making directory failed.

       

      func (ks *fileBasedKeyStore) createKeyStore() error {
         // Create keystore directory root if it doesn't exist yet
         ksPath := ks.path
         logger.Debugf("Creating KeyStore at [%s]...", ksPath)
      
         os.MkdirAll(ksPath, 0755) // error has been ignored
      
         logger.Debugf("KeyStore created at [%s].", ksPath)
         return nil
      }
      

       

      Attachments

        Activity

          People

            shitaibin Taibin Shi
            shitaibin Taibin Shi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: