Errors

The Files.com CLI will detect errors coming back from the API and provide a detailed message to the current output explaining the cause of the error.

Errors fall into two basic categories:

  1. General Usage Errors - errors that result from incorrect usage of the CLI tool
  2. API Response errors - errors returned from the Files.com API.

Example General Error


files-cli BADCOMMAND
Error: unknown command "BADCOMMAND" for "files-cli"
Run 'files-cli --help' for usage.

Example Files.com API Error


files-cli folders list-for /BADFOLDER

Error: Not Found - `Not Found.  This may be related to your permissions.`

API Error Types

To understand the types of errors that come back from the Files.com API and will be displayed by the CLI, see the Rest API Errors.