File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ extend( Repo.prototype, {
65
65
66
66
function ( error , tags ) {
67
67
if ( error ) {
68
+ if ( / R e p o s i t o r y n o t f o u n d / . test ( error . message ) ) {
69
+ repo . informRepoNotFound ( ) ;
70
+ return fn ( null , [ ] ) ;
71
+ }
72
+
68
73
return fn ( error ) ;
69
74
}
70
75
@@ -186,6 +191,9 @@ extend( Repo.prototype, {
186
191
informOtherOwner : function ( data ) {
187
192
this . inform ( this . id + " " + data . tag + " cannot publish " + data . name + " which is owned by " + data . owner ) ;
188
193
} ,
194
+ informRepoNotFound : function ( ) {
195
+ this . inform ( this . id + " repo not found on remote server." ) ;
196
+ } ,
189
197
informSuccess : function ( data ) {
190
198
this . inform ( this . id + " SUCCESSFULLY ADDED " + data . name + " v" + data . version + "!" ) ;
191
199
}
You can’t perform that action at this time.
0 commit comments