update
This commit is contained in:
@@ -53,7 +53,7 @@ func fileDate(filename string) string {
|
||||
|
||||
func main() {
|
||||
defer func() {
|
||||
if e.Panicked() {
|
||||
if e.Panicked {
|
||||
_ = recover()
|
||||
os.Exit(1)
|
||||
}
|
||||
@@ -99,6 +99,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