From 5924204ab2956d3947ca19c07585b81173226a4f Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Mon, 27 Oct 2025 11:03:49 -0700 Subject: Add spinning globe to TrackerView. Continue cleanup of NetSocketNew. --- Hotline/Library/NetSocketNew.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Hotline/Library/NetSocketNew.swift') diff --git a/Hotline/Library/NetSocketNew.swift b/Hotline/Library/NetSocketNew.swift index d4507b8..8873ee6 100644 --- a/Hotline/Library/NetSocketNew.swift +++ b/Hotline/Library/NetSocketNew.swift @@ -1108,7 +1108,7 @@ fileprivate extension NetSocketNew { let values = try url.resourceValues(forKeys: [.isRegularFileKey, .fileSizeKey]) guard values.isRegularFile == true else { throw NetSocketError.failed(underlying: NSError( - domain: "CleanSockets", code: 1001, + domain: "NetSocket", code: 1001, userInfo: [NSLocalizedDescriptionKey: "Not a regular file: \(url.path)"] )) } @@ -1116,7 +1116,7 @@ fileprivate extension NetSocketNew { let attrs = try FileManager.default.attributesOfItem(atPath: url.path) if let n = attrs[.size] as? NSNumber { return n.int64Value } throw NetSocketError.failed(underlying: NSError( - domain: "CleanSockets", code: 1002, + domain: "NetSocket", code: 1002, userInfo: [NSLocalizedDescriptionKey: "Unable to determine file size for \(url.lastPathComponent)"] )) } -- cgit