-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(upload): align output, report problems
fixes #114 When a upload operation fails in part or in total a non-zero exit code accompanied by a meaningful message will be added. Created collections and resources are now actually counted. With `--verbose` errors on resource and collection level are shown. In general output of upload operations is now better aligned and also colored if the terminal is capable of that. Improved utitily modules: - errors.js - recognize more network errors - recognize filesystem errors - recognize XMLRPC faults - export all error categorization helpers - add `formatErrorMessage` - connection.js - new helper `getServerUrl` returns db server URL - new helper `getUserInfo` returns user connecting to DB New utility modules: - account.js - `getAccountInfo`: turns raw XMLRPC db user data into AccountInfo - message.js - `logSucces`: helper to align operation success messages - `logFailure`: helper to align operation failure messages Adapt and improve tests.
- Loading branch information
Showing
7 changed files
with
345 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.