Unverified Commit cf4c743f authored by Mark Beamer Jr's avatar Mark Beamer Jr
Browse files

ci test

parent 6d9c0ddd
......@@ -123,12 +123,12 @@ func (s *Sync) downloadWallet() error {
creds := credentials.NewStaticCredentials(s.AwsS3ID, s.AwsS3Secret, "")
s3Session, err := session.NewSession(&aws.Config{Region: aws.String(s.AwsS3Region), Credentials: creds})
if err != nil {
return err
return errors.Prefix("error starting session: ", err)
}
downloader := s3manager.NewDownloader(s3Session)
out, err := os.Create(defaultTempWalletDir)
if err != nil {
return err
return errors.Prefix("error creating temp wallet: ", err)
}
defer out.Close()
......@@ -156,7 +156,12 @@ func (s *Sync) downloadWallet() error {
return errors.Err("zero bytes written")
}
return os.Rename(defaultTempWalletDir, defaultWalletDir)
err = os.Rename(defaultTempWalletDir, defaultWalletDir)
if err != nil {
return errors.Prefix("error replacing temp wallet for default wallet: ", err)
}
return nil
}
func (s *Sync) getWalletPaths() (defaultWallet, tempWallet string, key *string, err error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment