Skip to content

Commit

Permalink
HOOK-1803 Add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-leanix committed Apr 28, 2020
1 parent 1c28b8c commit b8033e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/storage/azureblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ func NewAzureBlob(azureOpts *AzureBlobOpts) (*AzureContainer, error) {
}

pipeline := azblob.NewPipeline(credential, azblob.PipelineOptions{})
URL, _ := url.Parse(fmt.Sprintf("https://%s.blob.core.windows.net/%s", azureOpts.AccountName, azureOpts.Container))
URL, err := url.Parse(fmt.Sprintf("https://%s.blob.core.windows.net/%s", azureOpts.AccountName, azureOpts.Container))
if err != nil {
return nil, err
}
container := azblob.NewContainerURL(*URL, pipeline)

ctx := context.Background()
Expand Down

0 comments on commit b8033e2

Please sign in to comment.