Skip to content

Commit

Permalink
main: stops panicing error
Browse files Browse the repository at this point in the history
    fixes #43
  • Loading branch information
arthur committed Jun 26, 2017
1 parent 92ddd50 commit d17edac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"log"
"os"

"github.com/XML-Comp/XML-Comp/comparer"
Expand Down Expand Up @@ -35,7 +36,7 @@ func main() {
comparer.DocType = *docType
err := comparer.Compare(*original, *translation)
if err != nil {
panic(err)
log.Fatal(err)
}
fmt.Println("Docs comparisons are DONE!")
fmt.Printf("Documents scanned: %v | Lines scanned: %v | Translations needed: %v\n", comparer.Docs, comparer.Lines, comparer.InNeed)
Expand Down

0 comments on commit d17edac

Please sign in to comment.