File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ static void write_crash_report(const char *err)
414
414
struct recent_command * rc ;
415
415
416
416
if (!rpt ) {
417
- error ("can't write crash report %s: %s " , loc , strerror ( errno ) );
417
+ error_errno ("can't write crash report %s" , loc );
418
418
free (loc );
419
419
return ;
420
420
}
@@ -1806,8 +1806,8 @@ static void dump_marks(void)
1806
1806
return ;
1807
1807
1808
1808
if (hold_lock_file_for_update (& mark_lock , export_marks_file , 0 ) < 0 ) {
1809
- failure |= error ("Unable to write marks file %s: %s" ,
1810
- export_marks_file , strerror ( errno ) );
1809
+ failure |= error_errno ("Unable to write marks file %s" ,
1810
+ export_marks_file );
1811
1811
return ;
1812
1812
}
1813
1813
@@ -1822,8 +1822,8 @@ static void dump_marks(void)
1822
1822
1823
1823
dump_marks_helper (f , 0 , marks );
1824
1824
if (commit_lock_file (& mark_lock )) {
1825
- failure |= error ("Unable to write file %s: %s" ,
1826
- export_marks_file , strerror ( errno ) );
1825
+ failure |= error_errno ("Unable to write file %s" ,
1826
+ export_marks_file );
1827
1827
return ;
1828
1828
}
1829
1829
}
You can’t perform that action at this time.
0 commit comments