Skip to content

Commit 4524228

Browse files
committed
enable service:push tests
1 parent 0720677 commit 4524228

5 files changed

Lines changed: 281 additions & 250 deletions

File tree

packages/apollo/src/commands/client/check.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export default class ClientCheck extends ClientCommand {
3636
title: "Checking client compatibility with service",
3737
task: async ctx => {
3838
if (!config.name) {
39-
throw new Error("No service found to link to Engine");
39+
throw new Error(
40+
"Cannot find a service name. Try adding a service name or API key."
41+
);
4042
}
4143
ctx.gitContext = await gitInfo(this.log);
4244

packages/apollo/src/commands/client/push.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export default class ServicePush extends ClientCommand {
2121
title: "Pushing client information to Engine",
2222
task: async ctx => {
2323
if (!config.name) {
24-
throw new Error("No service found to link to Engine");
24+
throw new Error(
25+
"Cannot find a service name. Try adding a service name or API key."
26+
);
2527
}
2628

2729
const operationManifest = getOperationManifestFromProject(

0 commit comments

Comments
 (0)