Skip to content

Commit 6bd6e4a

Browse files
surayya-MSbaronfel
authored andcommitted
bring back accidentally removed code
1 parent ea14973 commit 6bd6e4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Containers/Microsoft.NET.Build.Containers/ImagePublisher.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ await pushFunc(
149149
cancellationToken).ConfigureAwait(false);
150150
Log.LogMessage(MessageImportance.High, successMessage, destinationImageReference, destinationImageReference.RemoteRegistry!.RegistryName);
151151
}
152+
catch (UnableToAccessRepositoryException)
153+
{
154+
Log.LogErrorWithCodeFromResources(nameof(Strings.UnableToAccessRepository), destinationImageReference.Repository, destinationImageReference.RemoteRegistry!.RegistryName);
155+
}
152156
catch (ContainerHttpException e)
153157
{
154158
Log.LogErrorFromException(e, true);

0 commit comments

Comments
 (0)