Added an error message.
All checks were successful
Try out action / Try action (push) Successful in 17s
Lint / pre-commit Autoupdate (push) Successful in 52s

This commit is contained in:
Philipp Horstenkamp 2024-05-28 23:21:57 +02:00
parent 8799a76b55
commit f4fa3cccee
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -2,7 +2,7 @@ const core = require("@actions/core");
function parseVersion(str) {
if (typeof str != "string") {
return false;
throw new Error("When parsing a version number a string is expected.");
}
var arr = str.split(".");