From f4fa3ccceec0c187527c7870fd9e92b71b59d3aa Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Tue, 28 May 2024 23:21:57 +0200 Subject: [PATCH] Added an error message. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index bdc80c6..8d050ad 100644 --- a/index.js +++ b/index.js @@ -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(".");