]> granicus.if.org Git - postgresql/commitdiff
Make the error message output by AllocateFile() if failes to
authorMarc G. Fournier <scrappy@hub.org>
Thu, 20 Feb 1997 22:54:18 +0000 (22:54 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 20 Feb 1997 22:54:18 +0000 (22:54 +0000)
open Nulldev a *bit* more user friendly...or, at least, admin
friendly...have it print strerror(errno) as well

src/backend/storage/file/fd.c

index 7026837c34a0ef2eb18975943cf8e89347fc289b..9072f27961a114ba17353a06746965f2db805693 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *    $Id: fd.c,v 1.15 1997/02/14 04:16:26 momjian Exp $
+ *    $Id: fd.c,v 1.16 1997/02/20 22:54:18 scrappy Exp $
  *
  * NOTES:
  *
@@ -847,8 +847,8 @@ AllocateFile()
             FreeFd = 0;
             AssertLruRoom();
         } else {
-            elog(WARN,"Open: %s in %s line %d\n", Nulldev,
-                 __FILE__, __LINE__);
+            elog(WARN,"Open: %s in %s line %d, %s\n", Nulldev,
+                 __FILE__, __LINE__, strerror(errno));
         }
     }
     close(fd);