awsdocs / aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Go Cloudwatch CreateCustomMetric example does not display errors

fgehrlicher opened this issue · comments

Expected behavior

The CreateCustomMetric example ( go/cloudwatch/CreateCustomMetric/CreateCustomMetric.go ) should output errors that occur when creating the custom metric.

Actual behavior

In the case of an error, only a blank line is displayed.

Steps to reproduce

1. configure your environment variables incorrectly (e.g. don't set a region like I did 🙈)
2. run the example

Logs / stacktrace (if applicable)

No response

Which SDK were you using?

Go (v2)

Which OS were you using?

macOS

SDK version

1.51.21

OS version

macOs 14.4