File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
Class %IPM .Repo .IPublishService [ Abstract ]
2
2
{
3
3
4
- Method PublishModule (pModule As %IPM .Repo .Remote .ModuleInfo ) As %Boolean [ Abstract ]
4
+ Method PublishModule (pModule As %IPM .Repo .Remote .ModuleInfo ) As %Status [ Abstract ]
5
5
{
6
6
}
7
7
Original file line number Diff line number Diff line change 1
1
Class %IPM .Repo .Remote .PublishService Extends (%IPM .Repo .Remote .PackageService , %IPM .Repo .IPublishService )
2
2
{
3
3
4
- Method PublishModule (pModule As %IPM .Repo .Remote .ModuleInfo ) As %Boolean
4
+ Method PublishModule (pModule As %IPM .Repo .Remote .ModuleInfo ) As %Status
5
5
{
6
- Quit ..Publish (pModule )
6
+ Try {
7
+ Do ..Publish (pModule )
8
+ } Catch Ex {
9
+ Return Ex .AsStatus ()
10
+ }
11
+ Return $$$OK
7
12
}
8
13
9
- Method Publish (pModule As %IPM .Repo .Remote .ModuleInfo ) As %Boolean
14
+ Method Publish (pModule As %IPM .Repo .Remote .ModuleInfo )
10
15
{
11
16
If ((..Username =" " ) || (..Password =" " )) && (..Token =" " ) {
12
17
$$$ThrowStatus($$$ERROR($$$GeneralError, " Publishing module, authorization required." ))
@@ -28,7 +33,6 @@ Method Publish(pModule As %IPM.Repo.Remote.ModuleInfo) As %Boolean
28
33
$$$ThrowStatus($$$ERROR($$$GeneralError, tMessage ))
29
34
}
30
35
}
31
- Return 1
32
36
}
33
37
34
38
Method CheckUnpublishEnabled (packageName As %String , packageVersion As %String ) As %Boolean
You can’t perform that action at this time.
0 commit comments