mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Replaced ImportResult.ImportErrors with ImportResult.ImportLog
This commit is contained in:
parent
91f9b62db3
commit
8a2ddb7772
5 changed files with 55 additions and 13 deletions
|
@ -143,11 +143,11 @@ func (c *TransferCmd[E, I, R]) Transfer(exp backends.ExportProcessor[R], imp bac
|
|||
}
|
||||
|
||||
// Print errors
|
||||
if len(result.ImportErrors) > 0 {
|
||||
if len(result.ImportLog) > 0 {
|
||||
fmt.Println()
|
||||
fmt.Println(i18n.Tr("During the import the following errors occurred:"))
|
||||
for _, err := range result.ImportErrors {
|
||||
fmt.Println(i18n.Tr("Error: %v", err))
|
||||
fmt.Println(i18n.Tr("Import log:"))
|
||||
for _, entry := range result.ImportLog {
|
||||
fmt.Println(i18n.Tr("%v: %v", entry.Type, entry.Message))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue