提交 1dd29606 编写于 作者: M Max Kirillov 提交者: Paul Mackerras

gitk: Report errors in saving config file

Signed-off-by: NMax Kirillov <max@max630.net>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 995f792b
......@@ -2818,7 +2818,7 @@ proc savestuff {w} {
if {$stuffsaved} return
if {![winfo viewable .]} return
catch {
if {[catch {
if {[file exists $config_file_tmp]} {
file delete -force $config_file_tmp
}
......@@ -2884,6 +2884,8 @@ proc savestuff {w} {
puts $f "}"
close $f
file rename -force $config_file_tmp $config_file
} err]} {
puts "Error saving config: $err"
}
set stuffsaved 1
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册