refactor: correctly use commands and options of commander

This commit is contained in:
Karl-Philipp Wulfert
2019-11-19 12:39:45 +01:00
parent edca51be10
commit 61195370c7
2 changed files with 33 additions and 37 deletions

View File

@@ -514,7 +514,7 @@ export class Api {
},
});
} catch (error) {
if (error.error.includes('not responding') || _options.retryOnAnyError) {
if (error.error.message.includes('not responding') || _options.retryOnAnyError) {
const seconds = 5;
Logger.warn(`GitLab was not responding. Waiting ${seconds}s and retrying...`);