We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0197454 commit de5a42cCopy full SHA for de5a42c
swift/example_code/support/scenario/Sources/Scenario.swift
@@ -63,6 +63,11 @@ class Scenario {
63
//======================================================================
64
65
let services = await getServices().sorted { $0.name ?? "<unnamed>" < $1.name ?? "<unnamed>" }
66
+ if services.count == 0 {
67
+ print("No services found. Exiting.")
68
+ return
69
+ }
70
+
71
print("Select a service:")
72
for (index, service) in services.enumerated() {
73
let numberPart = String(format: "%*d", 3, index+1)
0 commit comments