From 374bf0f63c372d6a01e622bba6c12e40764a56c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Wed, 16 Oct 2024 01:08:08 +0200 Subject: [PATCH] Use HTTP-like error codes --- bin/which.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/which.js b/bin/which.js index 6083c07..3a9200d 100755 --- a/bin/which.js +++ b/bin/which.js @@ -55,5 +55,5 @@ try { } catch (error) { if (!silent) console.error(error instanceof Error ? error.message : error); - process.exit(1); + process.exit(404); }