@@ -29,10 +29,7 @@ after_build:
29 .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
29 .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
30 copy COPYRIGHT COPYRIGHT.txt
30 copy COPYRIGHT COPYRIGHT.txt
31 for /f "tokens=2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do ( set "VERSION=%%a" && exit )
31 for /f "tokens=2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do ( set "VERSION=%%a" && exit )
32− if "%VERSION%" == "" (
33− echo Error: could not determine version number.
32+ if "%VERSION%" == "" ( echo "Error: could not determine version number." && exit /b 1 )
36 cd windows
33 cd windows
37 echo Creating msi...
34 echo Creating msi...
38 candle -dVERSION=%VERSION% pandoc.wxs
35 candle -dVERSION=%VERSION% pandoc.wxs