Skip to content

Commit a8e733f

Browse files
committed
Update "Print status after error"
1 parent bedf210 commit a8e733f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

COSQuickRef.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A list of some common ObjectScript expressions
1515
| Determine if an object was modified | `Set variable = object.%IsModified()` |
1616
| Validate an object without saving | `Set status = object.%ValidateObject()` |
1717
| Validate a property without saving | `Set status = ##class(package.class).PropertyIsValid(object.Property)` |
18-
| Print status after error | `Do $system.Status.DisplayError(status)`<br>`Zwrite status` (v2012.2+) |
18+
| Print status after error | `Do $system.Status.DisplayError(status)`<br>`Write $system.Status.GetErrorText(status)` |
1919
| Obtain status details after error | `Do $system.Status.DecomposeStatus(status, .err)` |
2020
| Remove an object from process memory | `Set object = ""` |
2121
| Delete an existing object of a class | `Set status = ##class(package.class).%DeleteId(id)` |

0 commit comments

Comments
 (0)