Skip to content

Commit eae9783

Browse files
committed
Fix
1 parent ec40cd1 commit eae9783

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dashboard/src/service/json-rpc-envvar-client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
7575
return response;
7676
}
7777

78-
throw new ConnectError("env variable not found", Code.InvalidArgument);
78+
throw new ConnectError("env variable not found", Code.NotFound);
7979
}
8080

8181
async createUserEnvironmentVariable(
@@ -177,7 +177,7 @@ export class JsonRpcEnvvarClient implements PromiseClient<typeof EnvironmentVari
177177
return response;
178178
}
179179

180-
throw new ConnectError("env variable not found", Code.InvalidArgument);
180+
throw new ConnectError("env variable not found", Code.NotFound);
181181
}
182182

183183
async createConfigurationEnvironmentVariable(

components/server/src/api/envvar-service-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class EnvironmentVariableServiceAPI implements ServiceImpl<typeof Environ
8484
return response;
8585
}
8686

87-
throw new ConnectError("env variable not found", Code.InvalidArgument);
87+
throw new ConnectError("env variable not found", Code.NotFound);
8888
}
8989

9090
async createUserEnvironmentVariable(

0 commit comments

Comments
 (0)