some error handling for windows breakpad stacktrace dumping

This commit is contained in:
Tom Reynolds 2013-05-17 19:20:07 +00:00
parent 72ef16c918
commit c09d807ad8
1 changed files with 16 additions and 1 deletions

View File

@ -1,2 +1,17 @@
@echo
..\..\source\windows_deps\google-breakpad\trunk\src\minidump_stackwalk.exe "%AppData%\megaglest\%1" .\windows_symbols
if "%1." == "." goto NOTSET
if NOT EXIST "%AppData%\megaglest\%1" goto NOTFOUND
..\..\source\windows_deps\google-breakpad\trunk\src\minidump_stackwalk.exe "%AppData%\megaglest\%1" .\windows_symbols
goto END
:NOTSET
echo "You need to pass the name of the DMP file (in %AppData%) to process as the first argument."
goto END
:NOTFOUND
echo "File not found [%AppData%\megaglest\%1]"
goto END
:END