From: Haoqun Jiang Date: Thu, 6 Jan 2022 14:47:08 +0000 (+0800) Subject: workflow: fix error catching X-Git-Tag: v3.0.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1548ba20b4cdca796f7d483e07887d4fbf2b3b46;p=thirdparty%2Fvuejs%2Fcreate-vue.git workflow: fix error catching --- diff --git a/scripts/prepublish.mjs b/scripts/prepublish.mjs index daf5d7b6..b472c7f8 100644 --- a/scripts/prepublish.mjs +++ b/scripts/prepublish.mjs @@ -12,7 +12,7 @@ await $`git add -A .` try { await $`git commit -m "version ${version} snapshot"` } catch (e) { - if (!e.message.includes('nothing to commit')) { + if (!e.stdout.includes('nothing to commit')) { throw e } }