Skip to content

Commit

Permalink
fix: Handle error on fetch repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis committed May 10, 2020
1 parent ddbeafb commit 6820a44
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .gflowrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"production": "production",
"production": "master",
"develop": "master",
"charBranchNameSeparator": "_",
"remote": "origin",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
"url": "https://github.com/Romakita/gflow/issues"
},
"homepage": "https://github.com/Romakita/gflow"
}
}
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
branch: 'production',
branch: 'master',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
Expand Down
7 changes: 5 additions & 2 deletions src/command/refresh-repository/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
const { of } = require('rxjs');
const { EMPTY } = require('rxjs');
const { catchError } = require('rxjs/operators');
const Listr = require('listr');

const git = require('../../git/index');

function pipe(observable, output) {
observable.pipe(catchError((err) => of(err)));
observable.pipe(catchError((err) => {
output.push(err);
return EMPTY;
}));

observable.subscribe(result => {
output.push(result);
Expand Down

0 comments on commit 6820a44

Please sign in to comment.