1
0
Fork 0

only print endpoints if present

This commit is contained in:
Jan Steemann 2014-02-26 20:24:55 +01:00
parent 8e44bc80a5
commit d1db2ac3ca
1 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,9 @@ function main (argv) {
j--;
}
var l = r.runInfo[j];
for (i = 0;i < l.endpoints.length;i++) {
print(" " + l.roles[i] + ": " + l.endpoints[i]);
if (l.endpoints) {
for (i = 0; i < l.endpoints.length;i++) {
print(" " + l.roles[i] + ": " + l.endpoints[i]);
}
}
}