Skip to content

Commit ce1cd6d

Browse files
committed
Update to throw error with missing path
1 parent 9d7585f commit ce1cd6d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/commands/mobile_app/upload.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
5252
let path_strings: Vec<_> = match matches.get_many::<String>("paths") {
5353
Some(paths) => paths.collect(),
5454
None => {
55-
eprintln!("path argument is required");
56-
return Ok(());
55+
return Err(anyhow!("path argument is required"));
5756
}
5857
};
5958

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
```
22
$ sentry-cli mobile-app upload
3-
? success
4-
path argument is required
3+
? 1
4+
error: path argument is required
5+
6+
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
7+
Please attach the full debug log to all bug reports.
58

69
```

0 commit comments

Comments
 (0)