@@ -47,7 +47,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
47
47
req : PartialMessage < UpdateUserEnvironmentVariableRequest > ,
48
48
) : Promise < UpdateUserEnvironmentVariableResponse > {
49
49
if ( ! req . envVarId ) {
50
- throw new ConnectError ( "id is not set " , Code . InvalidArgument ) ;
50
+ throw new ConnectError ( "envVarId is required " , Code . InvalidArgument ) ;
51
51
}
52
52
53
53
const response = new UpdateUserEnvironmentVariableResponse ( ) ;
@@ -81,7 +81,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
81
81
req : PartialMessage < CreateUserEnvironmentVariableRequest > ,
82
82
) : Promise < CreateUserEnvironmentVariableResponse > {
83
83
if ( ! req . name || ! req . value || ! req . repositoryPattern ) {
84
- throw new ConnectError ( "invalid argument " , Code . InvalidArgument ) ;
84
+ throw new ConnectError ( "name, value and repositoryPattern are required " , Code . InvalidArgument ) ;
85
85
}
86
86
87
87
const response = new CreateUserEnvironmentVariableResponse ( ) ;
@@ -112,7 +112,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
112
112
req : PartialMessage < DeleteUserEnvironmentVariableRequest > ,
113
113
) : Promise < DeleteUserEnvironmentVariableResponse > {
114
114
if ( ! req . envVarId ) {
115
- throw new ConnectError ( "invalid argument " , Code . InvalidArgument ) ;
115
+ throw new ConnectError ( "envVarId is required " , Code . InvalidArgument ) ;
116
116
}
117
117
118
118
const variable : UserEnvVarValue = {
@@ -132,7 +132,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
132
132
req : PartialMessage < ListConfigurationEnvironmentVariablesRequest > ,
133
133
) : Promise < ListConfigurationEnvironmentVariablesResponse > {
134
134
if ( ! req . configurationId ) {
135
- throw new ConnectError ( "configurationId is not set " , Code . InvalidArgument ) ;
135
+ throw new ConnectError ( "configurationId is required " , Code . InvalidArgument ) ;
136
136
}
137
137
138
138
const result = new ListConfigurationEnvironmentVariablesResponse ( ) ;
@@ -146,10 +146,10 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
146
146
req : PartialMessage < UpdateConfigurationEnvironmentVariableRequest > ,
147
147
) : Promise < UpdateConfigurationEnvironmentVariableResponse > {
148
148
if ( ! req . envVarId ) {
149
- throw new ConnectError ( "envVarId is not set " , Code . InvalidArgument ) ;
149
+ throw new ConnectError ( "envVarId is required " , Code . InvalidArgument ) ;
150
150
}
151
151
if ( ! req . configurationId ) {
152
- throw new ConnectError ( "configurationId is not set " , Code . InvalidArgument ) ;
152
+ throw new ConnectError ( "configurationId is required " , Code . InvalidArgument ) ;
153
153
}
154
154
155
155
const response = new UpdateConfigurationEnvironmentVariableResponse ( ) ;
@@ -183,7 +183,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
183
183
req : PartialMessage < CreateConfigurationEnvironmentVariableRequest > ,
184
184
) : Promise < CreateConfigurationEnvironmentVariableResponse > {
185
185
if ( ! req . configurationId || ! req . name || ! req . value ) {
186
- throw new ConnectError ( "invalid argument " , Code . InvalidArgument ) ;
186
+ throw new ConnectError ( "configurationId, name and value are required " , Code . InvalidArgument ) ;
187
187
}
188
188
189
189
const response = new CreateConfigurationEnvironmentVariableResponse ( ) ;
@@ -212,7 +212,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
212
212
req : PartialMessage < DeleteConfigurationEnvironmentVariableRequest > ,
213
213
) : Promise < DeleteConfigurationEnvironmentVariableResponse > {
214
214
if ( ! req . envVarId ) {
215
- throw new ConnectError ( "invalid argument " , Code . InvalidArgument ) ;
215
+ throw new ConnectError ( "envVarId is required " , Code . InvalidArgument ) ;
216
216
}
217
217
218
218
await getGitpodService ( ) . server . deleteProjectEnvironmentVariable ( req . envVarId ) ;
0 commit comments