Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
catriona-m committed Nov 16, 2023
1 parent 840277d commit 4b18e45
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion storage/2020-08-04/blob/blobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Example() error {

blobClient, err := blobs.NewWithBaseUri(fmt.Sprintf("https://%s.blob.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}

auth, err := auth.NewSharedKeyAuthorizer(accountName, storageAccountKey, auth.SharedKey)
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/blob/containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Example() error {

containersClient, err := containers.NewWithBaseUri(fmt.Sprintf("https://%s.blob.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}

auth, err := auth.NewSharedKeyAuthorizer(accountName, storageAccountKey, auth.SharedKey)
Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/datalakestore/filesystems/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Example() error {

fileSystemsClient, err := filesystems.NewWithBaseUri(fmt.Sprintf("https://%s.dfs.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
fileSystemsClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/file/directories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Example() error {

directoriesClient, err := directories.NewWithBaseUri(fmt.Sprintf("https://%s.dfs.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
directoriesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/file/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Example() error {

filesClient, err := files.NewWithBaseUri(fmt.Sprintf("https://%s.file.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
filesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/queue/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Example() error {

messagesClient, err := messages.NewWithBaseUri(fmt.Sprintf("https://%s.queue.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
messagesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/queue/queues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Example() error {

queuesClient, err := queues.NewWithBaseUri(fmt.Sprintf("https://%s.queue.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
queuesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/table/entities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Example() error {

entitiesClient, err := entities.NewWithBaseUri(fmt.Sprintf("https://%s.table.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
entitiesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2020-08-04/table/tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Example() error {
}
tablesClient, err := tables.NewWithBaseUri(fmt.Sprintf("https://%s.table.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
tablesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/blob/blobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Example() error {

blobClient, err := blobs.NewWithBaseUri(fmt.Sprintf("https://%s.blob.%s", accountName, domainSuffix))
if err != nil {
t.Fatalf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}

auth, err := auth.NewSharedKeyAuthorizer(accountName, storageAccountKey, auth.SharedKey)
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/blob/containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Example() error {

containersClient, err := containers.NewWithBaseUri(fmt.Sprintf("https://%s.blob.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}

auth, err := auth.NewSharedKeyAuthorizer(accountName, storageAccountKey, auth.SharedKey)
Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/datalakestore/filesystems/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Example() error {

fileSystemsClient, err := filesystems.NewWithBaseUri(fmt.Sprintf("https://%s.dfs.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
fileSystemsClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/file/directories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Example() error {

directoriesClient, err := directories.NewWithBaseUri(fmt.Sprintf("https://%s.dfs.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
directoriesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/file/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Example() error {

filesClient, err := files.NewWithBaseUri(fmt.Sprintf("https://%s.file.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
filesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/queue/messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Example() error {

messagesClient, err := messages.NewWithBaseUri(fmt.Sprintf("https://%s.queue.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
messagesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/queue/queues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Example() error {

queuesClient, err := queues.NewWithBaseUri(fmt.Sprintf("https://%s.queue.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
queuesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/table/entities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Example() error {

entitiesClient, err := entities.NewWithBaseUri(fmt.Sprintf("https://%s.table.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
entitiesClient.Client.WithAuthorizer(auth)

Expand Down
2 changes: 1 addition & 1 deletion storage/2023-11-03/table/tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Example() error {
}
tablesClient, err := tables.NewWithBaseUri(fmt.Sprintf("https://%s.table.%s", accountName, domainSuffix))
if err != nil {
fmt.Errorf("building client for environment: %+v", err)
return fmt.Errorf("building client for environment: %+v", err)
}
tablesClient.Client.WithAuthorizer(auth)

Expand Down

0 comments on commit 4b18e45

Please sign in to comment.