File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,8 @@ export default function registry(opts: RegistryOptions = {}): RegistryCli {
122
122
! ! parsedError . error
123
123
) {
124
124
errMsg = parsedError . error ;
125
+ } else {
126
+ errMsg = parsedError as any ;
125
127
}
126
128
127
129
throw errMsg ;
Original file line number Diff line number Diff line change @@ -89,7 +89,11 @@ const publish = ({
89
89
await registry . putComponent ( options ) ;
90
90
logger . ok ( strings . messages . cli . PUBLISHED ( options . route ) ) ;
91
91
} catch ( err : any ) {
92
- if ( err === 'Unauthorized' || err . message === 'Unauthorized' ) {
92
+ if (
93
+ err === 'Unauthorized' ||
94
+ err . message === 'Unauthorized' ||
95
+ err . response ?. body === 'Unauthorized'
96
+ ) {
93
97
if ( ! ! options . username || ! ! options . password ) {
94
98
logger . err (
95
99
strings . errors . cli . PUBLISHING_FAIL (
You can’t perform that action at this time.
0 commit comments