Skip to content

Commit 398fac3

Browse files
Cr 5691 (#693)
* fixed error handling in pipelines ABAC
1 parent 1b1f172 commit 398fac3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/interface/cli/commands/pipeline/run.base.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ class RunBaseCommand {
100100
try {
101101
await sdk.pipelines.get({ name: pipelineName });
102102
} catch (err) {
103-
throw new CFError({
104-
message: `Passed pipeline id: ${pipelineName} does not exist`,
105-
});
103+
if (err.status === 404) {
104+
throw new CFError({
105+
message: `Passed pipeline id: ${pipelineName} does not exist`,
106+
});
107+
}
108+
109+
throw err;
106110
}
107111
}
108112

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.75.29",
3+
"version": "0.75.30",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)