Skip to content

Improve error messages #533

@rgoldberg

Description

@rgoldberg

Your Environment

  • mas version: 1.8.6
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini):

System Version: macOS 12.7.6 (21H1320)
Kernel Version: Darwin 21.6.0

mas Install Method

brew install mas (homebrew-core)

Describe the Bug

When invalid arguments are supplied to mas commands, many output cryptic and/or uninformative errors.

Can either create a new issue for each output issue, or can just try all commands one day to find & fix all uninformative error message, and to standardized their outputs, whatever you want.

To Reproduce

  1. mas install 2143935391

Expected Behavior

An error like:

Unknown app ID: 2143935391

Actual Behavior

Error: Download request failed: The server gave an error during download: 500 Internal Server Error.

Screenshots, Terminal Output

See above

Additional Context

Metadata

Metadata

Assignees

Labels

🖨 output🧹 cleanupOptimization of (not bug fix for) an existing feature

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions