From 4f1f697998b0aa2fa33427ffc1144739ea65115d Mon Sep 17 00:00:00 2001 From: Sean Massa Date: Mon, 12 Dec 2022 16:21:06 -0600 Subject: [PATCH] return `Error` instead of `string` --- source/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.js b/source/index.js index 79110f6..3389dc9 100644 --- a/source/index.js +++ b/source/index.js @@ -10,7 +10,7 @@ const executeCommand = (command, options, callback) => { process.exec(command, {cwd: dst}, function(err, stdout, stderr) { if (stdout === '') { - callback('this does not look like a git repo') + callback(new Error('this does not look like a git repo')) return }