Skip to content

Commit fc9ce66

Browse files
committed
Add enhanced error information and other output
1 parent b749523 commit fc9ce66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class Scenario {
6262
// DescribeServices.
6363
//======================================================================
6464

65+
print("Getting available services...")
66+
6567
let services = await getServices().sorted { $0.name ?? "<unnamed>" < $1.name ?? "<unnamed>" }
6668
if services.count == 0 {
6769
print("No services found. Exiting.")
@@ -307,7 +309,7 @@ class Scenario {
307309
print("*** You need a subscription to use AWS Support.")
308310
return []
309311
} else {
310-
print("*** An unknown error occurred getting support information.")
312+
print("*** An unanticipated error occurred getting support information: \(error.errorCode ?? "<unknown>").")
311313
return []
312314
}
313315
} catch {

0 commit comments

Comments
 (0)