@@ -252,7 +252,7 @@ static int write_message(const void *buf, size_t len, const char *filename,
252252 }
253253 if (commit_lock_file (& msg_file ) < 0 ) {
254254 rollback_lock_file (& msg_file );
255- return error (_ ("Error wrapping up %s ." ), filename );
255+ return error (_ ("Error wrapping up '%s' ." ), filename );
256256 }
257257
258258 return 0 ;
@@ -954,16 +954,16 @@ static int read_populate_todo(struct todo_list *todo_list,
954954 strbuf_reset (& todo_list -> buf );
955955 fd = open (todo_file , O_RDONLY );
956956 if (fd < 0 )
957- return error_errno (_ ("Could not open %s " ), todo_file );
957+ return error_errno (_ ("Could not open '%s' " ), todo_file );
958958 if (strbuf_read (& todo_list -> buf , fd , 0 ) < 0 ) {
959959 close (fd );
960- return error (_ ("Could not read %s ." ), todo_file );
960+ return error (_ ("Could not read '%s' ." ), todo_file );
961961 }
962962 close (fd );
963963
964964 res = parse_insn_buffer (todo_list -> buf .buf , todo_list );
965965 if (res )
966- return error (_ ("Unusable instruction sheet: %s " ), todo_file );
966+ return error (_ ("Unusable instruction sheet: '%s' " ), todo_file );
967967
968968 if (!is_rebase_i (opts )) {
969969 enum todo_command valid =
@@ -1054,7 +1054,7 @@ static int read_populate_opts(struct replay_opts *opts)
10541054 * are pretty certain that it is syntactically correct.
10551055 */
10561056 if (git_config_from_file (populate_opts_cb , git_path_opts_file (), opts ) < 0 )
1057- return error (_ ("Malformed options sheet: %s " ),
1057+ return error (_ ("Malformed options sheet: '%s' " ),
10581058 git_path_opts_file ());
10591059 return 0 ;
10601060}
@@ -1097,7 +1097,7 @@ static int create_seq_dir(void)
10971097 return -1 ;
10981098 }
10991099 else if (mkdir (git_path_seq_dir (), 0777 ) < 0 )
1100- return error_errno (_ ("Could not create sequencer directory %s " ),
1100+ return error_errno (_ ("Could not create sequencer directory '%s' " ),
11011101 git_path_seq_dir ());
11021102 return 0 ;
11031103}
@@ -1116,12 +1116,12 @@ static int save_head(const char *head)
11161116 strbuf_addf (& buf , "%s\n" , head );
11171117 if (write_in_full (fd , buf .buf , buf .len ) < 0 ) {
11181118 rollback_lock_file (& head_lock );
1119- return error_errno (_ ("Could not write to %s " ),
1119+ return error_errno (_ ("Could not write to '%s' " ),
11201120 git_path_head_file ());
11211121 }
11221122 if (commit_lock_file (& head_lock ) < 0 ) {
11231123 rollback_lock_file (& head_lock );
1124- return error (_ ("Error wrapping up %s ." ), git_path_head_file ());
1124+ return error (_ ("Error wrapping up '%s' ." ), git_path_head_file ());
11251125 }
11261126 return 0 ;
11271127}
@@ -1166,9 +1166,9 @@ int sequencer_rollback(struct replay_opts *opts)
11661166 return rollback_single_pick ();
11671167 }
11681168 if (!f )
1169- return error_errno (_ ("cannot open %s " ), git_path_head_file ());
1169+ return error_errno (_ ("cannot open '%s' " ), git_path_head_file ());
11701170 if (strbuf_getline_lf (& buf , f )) {
1171- error (_ ("cannot read %s : %s" ), git_path_head_file (),
1171+ error (_ ("cannot read '%s' : %s" ), git_path_head_file (),
11721172 ferror (f ) ? strerror (errno ) : _ ("unexpected end of file" ));
11731173 fclose (f );
11741174 goto fail ;
@@ -1207,7 +1207,7 @@ static int save_todo(struct todo_list *todo_list, struct replay_opts *opts)
12071207 todo_list -> buf .len - offset ) < 0 )
12081208 return error_errno (_ ("Could not write to '%s'" ), todo_path );
12091209 if (commit_lock_file (& todo_lock ) < 0 )
1210- return error (_ ("Error wrapping up %s ." ), todo_path );
1210+ return error (_ ("Error wrapping up '%s' ." ), todo_path );
12111211 return 0 ;
12121212}
12131213
0 commit comments