Skip to content

Commit 88e9774

Browse files
committed
Refactor error handling in CreateProjection method to properly set status on exception
1 parent 6e040ed commit 88e9774

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/iop/cls/IOP/Projection.cls

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ ClassMethod CreateProjection(
2828
$$$ThrowOnError(##class(Security.Applications).Create(webName, .webProperties))
2929
}
3030
Catch ex {
31-
Set tSC=ex.AsStatus()
32-
Write "Error creating web application: ", ex.DisplayString(), !
33-
Set tSC = $$$OK
31+
32+
Write !,"Error creating web application: ", ex.DisplayString(), !
33+
3434
}
3535

3636
znspace tCurrentNamespace

0 commit comments

Comments
 (0)