diff --git a/scripts/mkimage b/scripts/mkimage index 0162506322..5f419a6d90 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -39,11 +39,16 @@ cleanup() { } show_error() { - echo -e "image: error happen...\n" - cat "${SAVE_ERROR}" + echo "image: An error has occurred..." echo + if [ -s "${SAVE_ERROR}" ]; then + cat "${SAVE_ERROR}" + else + echo "Folder $LE_TMP might be out of free space..." + fi + echo cleanup - exit 1 + die } trap cleanup SIGINT