aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Library/NetSocketNew.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2025-10-27 11:03:49 -0700
committerDustin Mierau <dustin@mierau.me>2025-10-27 11:03:49 -0700
commit5924204ab2956d3947ca19c07585b81173226a4f (patch)
tree68e2aa644f54bd5acfc02894e1f7f44f7da184e7 /Hotline/Library/NetSocketNew.swift
parent2b278f662326b44d86d84ae3e11ff0b770757f45 (diff)
Add spinning globe to TrackerView. Continue cleanup of NetSocketNew.
Diffstat (limited to 'Hotline/Library/NetSocketNew.swift')
-rw-r--r--Hotline/Library/NetSocketNew.swift4
1 files changed, 2 insertions, 2 deletions
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)"]
))
}