From f6816a14a8c3366234a880cbc753bd2e20061049 Mon Sep 17 00:00:00 2001 From: Shuheng Liu Date: Wed, 8 Jan 2025 16:47:17 -0500 Subject: [PATCH] fix: fix a bug where errors during publication isn't shown --- src/cls/IPM/Lifecycle/Base.cls | 2 +- src/cls/IPM/Repo/Oras/PublishService.cls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cls/IPM/Lifecycle/Base.cls b/src/cls/IPM/Lifecycle/Base.cls index e7187551..f3381d53 100644 --- a/src/cls/IPM/Lifecycle/Base.cls +++ b/src/cls/IPM/Lifecycle/Base.cls @@ -1407,7 +1407,7 @@ Method %Publish(ByRef pParams) As %Status } - Do tPublishClient.PublishModule(tModule) + $$$ThrowOnError(tPublishClient.PublishModule(tModule)) // May need to update the version of the currently-installed module. diff --git a/src/cls/IPM/Repo/Oras/PublishService.cls b/src/cls/IPM/Repo/Oras/PublishService.cls index 6c39c836..1889cc5a 100644 --- a/src/cls/IPM/Repo/Oras/PublishService.cls +++ b/src/cls/IPM/Repo/Oras/PublishService.cls @@ -1,7 +1,7 @@ Class %IPM.Repo.Oras.PublishService Extends (%IPM.Repo.Oras.PackageService, %IPM.Repo.IPublishService) { -Method PublishModule(pModule As %IPM.Repo.Remote.ModuleInfo) As %Boolean +Method PublishModule(pModule As %IPM.Repo.Remote.ModuleInfo) As %Status { Set status = $$$OK Try {