info should be an object
This commit is contained in:
parent
f201f9c4b4
commit
9ad39482ad
|
@ -251,18 +251,15 @@ function skylinkVerification(done, linkInfo) {
|
||||||
up = up && validBody && validMetadata;
|
up = up && validBody && validMetadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
let info = "";
|
const info = { validBody, validMetadata };
|
||||||
if (!up) {
|
|
||||||
info = "validBody: " + validBody + "\nvalidMetadata: " + validMetadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return the entry information
|
// Return the entry information
|
||||||
done({
|
done({
|
||||||
name: linkInfo.description,
|
name: linkInfo.description,
|
||||||
up: up,
|
up,
|
||||||
|
info,
|
||||||
statusCode,
|
statusCode,
|
||||||
time: checks.catchRequestTime(time),
|
time: checks.catchRequestTime(time),
|
||||||
info: info,
|
|
||||||
critical: true,
|
critical: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue