File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ func (c *converter) Print(values []string) error {
209209
210210func (c * converter ) Panic (value string ) error {
211211 c .addLine (fmt .Sprintf ("echo \" %s\" " , value ))
212- c .addLine ("return - 1" )
212+ c .addLine ("exit 1" )
213213 return nil
214214}
215215
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ func (c *converter) ProgramEnd() error {
202202 )
203203 }
204204 c .addEndLine (":end" )
205- c .addEndLine ("endlocal" )
205+ c .addEndLine ("endlocal & exit /B %_e% " )
206206 return nil
207207}
208208
@@ -345,7 +345,7 @@ func (c *converter) Print(values []string) error {
345345
346346func (c * converter ) Panic (value string ) error {
347347 c .addLine (fmt .Sprintf ("echo %s" , value ))
348- // TODO: Add error value.
348+ c . addLine ( "set \" _e=1 \" " )
349349 c .addLine ("goto :end" )
350350 return nil
351351}
You can’t perform that action at this time.
0 commit comments