All wlevs.Admin commands return an exit code of 0 when the command succeeds and an exit code of 1 when the command fails.
To view the exit code from a Windows command prompt, enter echo%ERRORLEVEL% after you run a wlevs.Admin command. To view the exit code in a bash shell, enter echo $?.
wlevs.Admin calls System.exit(1) when an exception is raised while processing a command, which causes Ant and other Java client JVMs to exit.