From fb3f4fa73f87853ab298d4cb7eeb49106bf1177a Mon Sep 17 00:00:00 2001 From: Max Ogden Date: Thu, 14 May 2015 17:02:06 -0700 Subject: [PATCH] improve error message --- headers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers.js b/headers.js index 19c8bf1..19c3da3 100644 --- a/headers.js +++ b/headers.js @@ -213,7 +213,7 @@ exports.decode = function(buf) { if (c === 8*32) return null //valid checksum - if (c !== decodeOct(buf, 148)) throw new Error('invalid header') + if (c !== decodeOct(buf, 148)) throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?") return { name: name,