Skip to content

Commit

Permalink
Update PackageManagerClient.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Jan 29, 2024
1 parent 2d81231 commit 186573b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/DynamoPackages/PackageManagerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,16 @@ internal void Publish(Package package, object files, IEnumerable<string> markdow
}
packageUploadHandle.Done(null);
}
catch (IOException e)
catch (Exception ex)
{
packageUploadHandle.Error(DynamoPackages.Properties.Resources.CannotRemovePackageAssemblyTitle + ": " + DynamoPackages.Properties.Resources.CannotRemovePackageAssemblyMessage + "(" + e.Message + ")");
}
catch (Exception e)
{
packageUploadHandle.Error(e.GetType() + ": " + e.Message);
if (ex is IOException || ex is UnauthorizedAccessException)
{
packageUploadHandle.Error(DynamoPackages.Properties.Resources.CannotRemovePackageAssemblyTitle + ": " + DynamoPackages.Properties.Resources.CannotRemovePackageAssemblyMessage + "(" + ex.Message + ")");
}
else
{
packageUploadHandle.Error(ex.GetType() + ": " + ex.Message);
}
}
}

Expand Down

0 comments on commit 186573b

Please sign in to comment.