Skip to content

Commit 1dd2960

Browse files
max630paulusmack
authored andcommitted
gitk: Report errors in saving config file
Signed-off-by: Max Kirillov <max@max630.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 995f792 commit 1dd2960

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gitk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2818,7 +2818,7 @@ proc savestuff {w} {
28182818

28192819
if {$stuffsaved} return
28202820
if {![winfo viewable .]} return
2821-
catch {
2821+
if {[catch {
28222822
if {[file exists $config_file_tmp]} {
28232823
file delete -force $config_file_tmp
28242824
}
@@ -2884,6 +2884,8 @@ proc savestuff {w} {
28842884
puts $f "}"
28852885
close $f
28862886
file rename -force $config_file_tmp $config_file
2887+
} err]} {
2888+
puts "Error saving config: $err"
28872889
}
28882890
set stuffsaved 1
28892891
}

0 commit comments

Comments
 (0)