summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kirillov <max@max630.net>2015-03-04 05:58:17 +0200
committerPaul Mackerras <paulus@samba.org>2015-03-15 14:14:22 +1100
commit1dd29606b69279605f42b715e491aaf8cd0fea60 (patch)
treebddf014e0601552519e68361b5c4c06676fe2bc3
parent995f792b992affdcea9489f063392557de2b3753 (diff)
downloadgit-1dd29606b69279605f42b715e491aaf8cd0fea60.tar.gz
gitk: Report errors in saving config file
Signed-off-by: Max Kirillov <max@max630.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitk b/gitk
index 3425066fa8..26a7db4c8c 100755
--- a/gitk
+++ b/gitk
@@ -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
}