Skip to content

Commit

Permalink
Improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Dec 14, 2024
1 parent befd5e1 commit 6c5b960
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Sources/App/Commands/Ingest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ enum Ingestion {

var description: String {
switch self {
case let .fetchMetadataFailed(_, _, details):
"fetchMetadataFailed(\(details))"
case .findOrCreateRepositoryFailed:
"findOrCreateRepositoryFailed"
case let .fetchMetadataFailed(owner, name, details):
"fetchMetadataFailed(\(owner), \(name), \(details))"
case let .findOrCreateRepositoryFailed(url, details):
"findOrCreateRepositoryFailed(\(url), \(details))"
case let .invalidURL(url):
"invalidURL(\(url))"
case .noRepositoryMetadata:
"noRepositoryMetadata"
case let .repositorySaveFailed(_, _, details):
"repositorySaveFailed(\(String(reflecting: details)))"
case let .repositorySaveUniqueViolation(_, _, details):
"repositorySaveUniqueViolation(\(details))"
case let .noRepositoryMetadata(owner, name):
"noRepositoryMetadata(\(owner), \(name))"
case let .repositorySaveFailed(owner, name, details):
"repositorySaveFailed(\(owner), \(name), \(details))"
case let .repositorySaveUniqueViolation(owner, name, details):
"repositorySaveUniqueViolation(\(owner), \(name), \(details))"
}
}
}
Expand Down

0 comments on commit 6c5b960

Please sign in to comment.