Dump result board string even if the resolution fails (with --out)
authorMikael Berthe <mikael@lilotux.net>
Fri, 09 Sep 2016 23:28:58 +0200
changeset 5 733df0275d78
parent 4 4ad659431711
child 6 110d38ae22cd
Dump result board string even if the resolution fails (with --out)
gotak/gotak.go
--- a/gotak/gotak.go	Thu Sep 08 21:57:30 2016 +0200
+++ b/gotak/gotak.go	Fri Sep 09 23:28:58 2016 +0200
@@ -142,6 +142,10 @@
 		}
 		if !full {
 			tak.DumpBoard()
+			fmt.Println()
+			if *out {
+				tak.DumpString()
+			}
 			log.Println("The takuzu could not be completed using trivial methods.")
 			os.Exit(2)
 		}