From 6c697e63c786b6964d13a641b197d2c95f815b2a Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 15 Feb 2022 12:27:51 +0100 Subject: [PATCH] fiabilisation de cat --- rootfs overrides/usr/bin/cat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs overrides/usr/bin/cat.js b/rootfs overrides/usr/bin/cat.js index 0a342bf..bb63c0d 100644 --- a/rootfs overrides/usr/bin/cat.js +++ b/rootfs overrides/usr/bin/cat.js @@ -8,11 +8,11 @@ if(process.argv.length >= 3){ catch(e){ switch(e.code){ case "ENOENT": - console.error(`file "${file}" does not exist.`); + console.error(`file "${process.argv[3]}" does not exist.`); break; - default: + default: console.error(`error: code ${e.code}`) } } - + } \ No newline at end of file