semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
25 stars 13 forks source link

bugfix: adds check to prevent index out of range runtime error #186

Closed raphaeljlps closed 2 years ago

raphaeljlps commented 2 years ago

Adds a check to prevent index out of range error while trying to access index 0 of an empty array. Also adds an error message that gives a clue on what may be the issue.

Work for #177

raphaeljlps commented 2 years ago

@shiroyasha can you please take a look when you have time?