update
This commit is contained in:
@@ -70,7 +70,7 @@ func fileDate(filename string) string {
|
||||
|
||||
func main() {
|
||||
defer func() {
|
||||
if e.Panicked() {
|
||||
if e.Panicked {
|
||||
_ = recover()
|
||||
os.Exit(1)
|
||||
}
|
||||
@@ -116,6 +116,9 @@ func main() {
|
||||
func() {
|
||||
var ok bool
|
||||
defer func() {
|
||||
if e.Panicked {
|
||||
fmt.Fprintln(os.Stderr, "----", filename, "----")
|
||||
}
|
||||
if !ok {
|
||||
_ = os.Remove(filename + ".xml")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user