Skip to content

Commit a8c502e

Browse files
committed
Enhance error; improve comments.
1 parent fc9ce66 commit a8c502e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

swift/example_code/support/scenario/Sources/Scenario.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class Scenario {
309309
print("*** You need a subscription to use AWS Support.")
310310
return []
311311
} else {
312-
print("*** An unanticipated error occurred getting support information: \(error.errorCode ?? "<unknown>").")
312+
print("*** An unanticipated error occurred getting support information: \(error.message ?? "") (\(error.errorCode ?? "<unknown>")).")
313313
return []
314314
}
315315
} catch {

swift/example_code/support/scenario/Sources/entry.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// An example that shows how to use the AWS SDK for Swift to perform a series
66
// of operations using AWS Support
77
//
8-
// NOTE: You must have a business class AWS account to use AWS Support
9-
// features. See https://aws.amazon.com/premiumsupport/plans/.
10-
//
8+
// NOTE: You must have one of the following AWS Support plans to use the AWS
9+
// Support API: Business, Enterprise On-Ramp, or Enterprise. For more
10+
// information, see: https://aws.amazon.com/premiumsupport/plans/.
1111

1212
import ArgumentParser
1313
import AWSClientRuntime

0 commit comments

Comments
 (0)