Skip to content

Commit c79414a

Browse files
committed
fix (Export All): Update logic to instead explicitly verify the item exists internally
and allow for Export UDL() to $$$QuitOnError and report other problems.
1 parent 7e06861 commit c79414a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,10 +1722,12 @@ ClassMethod ExportItem(InternalName As %String, expand As %Boolean = 1, force As
17221722
write !, "Production decomposition enabled, skipping export of production class"
17231723
set filename = ""
17241724
} else {
1725-
set tSC = $SYSTEM.OBJ.ExportUDL(InternalName, filename,"-d/diff")
1726-
if $$$ISERR(tSC) {
1725+
if '##class(%RoutineMgr).Exists(InternalName) {
17271726
write !?5, InternalName, " not found. Cleaning up source control."
17281727
do ..RemoveFromServerSideSourceControl(InternalName)
1728+
}
1729+
else {
1730+
$$$QuitOnError($SYSTEM.OBJ.ExportUDL(InternalName, filename,"-d/diff"))
17291731
}
17301732
}
17311733
if (filename '= "") && ##class(%File).Exists(filename) {
@@ -3287,3 +3289,4 @@ ClassMethod IsSchemaStandard(pName As %String = "") As %Boolean [ Internal ]
32873289
}
32883290

32893291
}
3292+

0 commit comments

Comments
 (0)