From 5599263d84bd83817fbe05f9e4ca5283f0045a90 Mon Sep 17 00:00:00 2001 From: Gustavo Neves Date: Tue, 16 May 2017 20:57:16 -0300 Subject: [PATCH] v2.0.5 - Better GS error handling and debugging messages --- pdfScale.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdfScale.sh b/pdfScale.sh index c22d094..c878c1b 100755 --- a/pdfScale.sh +++ b/pdfScale.sh @@ -124,7 +124,7 @@ main() { vprint " Final Status: File created successfully" else vprint " Final Status: Error detected"$'\n'" Exit status: $finalRet" - printError $'\n'"Ghostscript Debug Info:"$'\n'"$GS_RUN_STATUS" + printError $'\n'"PdfScale: ERROR!"$'\n'"Ghostscript Debug Info:"$'\n'"$GS_RUN_STATUS" fi return $finalRet @@ -164,7 +164,7 @@ pageScale() { local increase=$(echo "scale=0; (($SCALE - 1) * 100)/1" | "$BCBIN") vprint " Run Scaling: $increase %" - GS_RUN_STATUS="$GS_RUN_STATUS$(gsPageScale 2>&1)" + GS_RUN_STATUS="$GS_RUN_STATUS""$(gsPageScale 2>&1)" return $? # Last command is always returned I think }