Skip to content

Commit da94122

Browse files
committed
Make test environment mapping explicit, add context to the error message
1 parent de0ec48 commit da94122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Demo/Configuration.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ internal enum ConfigurationConstants {
2626

2727
static let componentsEnvironment: Environment = {
2828
switch environment.lowercased() {
29+
case "test":
30+
return .beta
2931
case "beta":
3032
return .beta
3133
case "local":
3234
return .local
3335
default:
34-
fatalError("Wrong environment: \(environment)")
36+
fatalError("Wrong environment: \(environment). Supported environemnts: `test`, `beta` and `local`")
3537
}
3638
}()
3739

0 commit comments

Comments
 (0)