Skip to content

Commit c42ffc7

Browse files
authored
Merge pull request #38 from vtex/fix/improve-error-log
Fix/improve error log
2 parents 72b1ccc + d9e0ec2 commit c42ffc7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
910
### Revert
11+
1012
- Use old app-store-seller major for client
1113

1214
### Fixed
15+
1316
- Use new app-store-seller major for client
17+
- Shows error message when an API call request didn't complete, such as in a Timeout
18+
1419
## [1.1.0] - 2021-11-22
1520

1621
### Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vtex/cli-plugin-submit",
33
"description": "Toolbelt plugin for the 'submit' command",
4-
"version": "1.1.3",
4+
"version": "1.1.4",
55
"bugs": "https://github.com/vtex/cli-plugin-submit/issues",
66
"dependencies": {
77
"@oclif/command": "^1",

src/modules/submit.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const handleSubmitAppError = (e: any) => {
2929
}
3030

3131
default: {
32-
logger.error(e.response?.data)
32+
e.response
33+
? logger.error(e.response.data.message)
34+
: logger.error(e.message)
3335
}
3436
}
3537
}

0 commit comments

Comments
 (0)