Skip to content

Commit 5680100

Browse files
Do not stop execution if step.name contains an unexpected value
Do not stop execution if step.name contains an unexpected value
1 parent ad3866a commit 5680100

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/logic/api/log.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ const printFollowFirebaseLogs = async (firebaseAuth, progressJobId) => {
8787
jobIdRef.child('steps')
8888
.on('child_added', (snapshot) => {
8989
const step = snapshot.val();
90-
const prefixSuffix = Array(step.name.length)
91-
.join('=');
92-
console.log(`${prefixSuffix}\nStep: ${step.name}\n${prefixSuffix}`);
90+
if (step.name) {
91+
const prefixSuffix = Array(step.name.length).join('=');
92+
console.log(`${prefixSuffix}\nStep: ${step.name}\n${prefixSuffix}`);
93+
} else {
94+
console.log(step);
95+
}
9396
step.ref = snapshot.ref();
9497
step.ref.child('logs')
9598
.on('child_added', (snapshot) => { // eslint-disable-line

0 commit comments

Comments
 (0)