Skip to content

More comprehensive exit codes, drive connect/disconnect aliases

Choose a tag to compare

@algono algono released this 09 Jun 16:17
· 8 commits to main since this release

Now VPN or drive errors within the upv-cli tool return non-zero exit codes. This should help with scripting to differentiate between total success, program failures/errors or errors within the VPN/drive internal commands (Add-VpnConnection, rasdial, net use...).

Also, upv drive now contains new aliases:

  • connect : alias for mount
  • disconnect : alias for unmount

The upv command now returns the following exit codes:

  • 0: Success

General errors:

These errors are common to all commands and indicate general issues:

  • 1: General error (the program failed)
  • 2: Invalid command or argument (parsing error)

Specific upv-cli errors:

These errors are specific to the upv-cli tool and typically indicate issues with VPN or drive operations:

  • 10: Generic upv-cli error
  • 11: VPN error
  • 12: Drive error
  • 13: Drive in use error (files or folders are open on the drive)