From 76e81eb562441a55011818b339c25370f638c6d0 Mon Sep 17 00:00:00 2001 From: Val Date: Sun, 23 Jan 2022 09:56:19 -0500 Subject: [PATCH] CLI error handling --- ffs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffs b/ffs index 83cbb28..024494b 100755 --- a/ffs +++ b/ffs @@ -3,3 +3,7 @@ const cli = require('./cli') cli(process.argv) + .catch(err => { + console.error(err.stack || err) + process.exit(1) + })