Skip to content

Commit 6624907

Browse files
committed
Fix errorbox
1 parent 7fc7305 commit 6624907

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Source/Examples/DistributedWorker.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,10 @@ struct DistributedWorker {
322322
let input = MLXArray(converting: [1.0, 2.0, 3.0, 4.0])
323323

324324
do {
325-
try withError {
325+
try withError { error in
326326
let result = MLXDistributed.sumScatter(input, group: group)
327327
eval(result)
328+
try error.check()
328329

329330
let values = result.asArray(Float.self)
330331
let shape = result.shape

0 commit comments

Comments
 (0)