Added check return code for shallow_flash.sh

fix #215
Can we simply mention such like "Failed: {Reason}"?