(remove_dir): Give a diagnostic upon failed save_cwd,

now that that function no longer calls `error'.
This commit is contained in:
Jim Meyering committed 2003-07-12 16:22:39 +00:00
1 parent c8f1cbc602
commit 4f78b3f40f
1 file changed
+4 -1
+4 -1
View File
@@ -976,7 +976,10 @@ remove_dir (Dirstack_state *ds, char const *dir, struct saved_cwd **cwd_state,
{
*cwd_state = XMALLOC (struct saved_cwd, 1);
if (save_cwd (*cwd_state))
return RM_ERROR;
{
error (0, errno, _("cannot get current directory"));
return RM_ERROR;
}
AD_push_initial (ds, *cwd_state);
AD_INIT_OTHER_MEMBERS ();
}