Added an error message.
This commit is contained in:
parent
8799a76b55
commit
f4fa3cccee
2
index.js
2
index.js
@ -2,7 +2,7 @@ const core = require("@actions/core");
|
|||||||
|
|
||||||
function parseVersion(str) {
|
function parseVersion(str) {
|
||||||
if (typeof str != "string") {
|
if (typeof str != "string") {
|
||||||
return false;
|
throw new Error("When parsing a version number a string is expected.");
|
||||||
}
|
}
|
||||||
|
|
||||||
var arr = str.split(".");
|
var arr = str.split(".");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user