diff --git a/commands/command_migrate.go b/commands/command_migrate.go index 24da7134..aa2b220c 100644 --- a/commands/command_migrate.go +++ b/commands/command_migrate.go @@ -361,9 +361,9 @@ func ensureWorkingCopyClean(in io.Reader, out io.Writer) { } if proceed { - fmt.Fprintf(out, "migrate: %s", tr.Tr.Get("changes in your working copy will be overridden ...\n")) + fmt.Fprintf(out, "migrate: %s\n", tr.Tr.Get("changes in your working copy will be overridden ...")) } else { - Exit(tr.Tr.Get("migrate: working copy must not be dirty")) + Exit("migrate: %s", tr.Tr.Get("working copy must not be dirty")) } } diff --git a/commands/command_migrate_import.go b/commands/command_migrate_import.go index 535a8478..4b861336 100644 --- a/commands/command_migrate_import.go +++ b/commands/command_migrate_import.go @@ -435,7 +435,7 @@ func rewriteTree(gf *lfs.GitFilter, db *gitobj.ObjectDatabase, root []byte, path subtreeEntry := tree.Entries[index] if subtreeEntry.Type() != gitobj.TreeObjectType { - return nil, errors.Errorf(tr.Tr.Get("migrate: expected %s to be a tree, got %s", head, subtreeEntry.Type())) + return nil, errors.Errorf("migrate: %s", tr.Tr.Get("expected %s to be a tree, got %s", head, subtreeEntry.Type())) } rewrittenSubtree, err := rewriteTree(gf, db, subtreeEntry.Oid, tail)