Small fixes for incorrect error messages - Mailing list pgsql-hackers

From zengman
Subject Small fixes for incorrect error messages
Date
Msg-id tencent_1EE1430B1E6C18A663B8990F@qq.com
Whole thread Raw
Responses Re: Small fixes for incorrect error messages
List pgsql-hackers
Hi all,

I found a few easily overlooked error messages worth fixing, as follows:

01
```
     if (!is_absolute_path(tsmap->new_dir))
-        pg_fatal("old directory is not an absolute path in tablespace mapping: %s",
+        pg_fatal("new directory is not an absolute path in tablespace mapping: %s",
                  tsmap->new_dir);
```

02
```
     if (rb < 0)
-        pg_fatal("could not read from file \"%s\": %m", dst);
+        pg_fatal("could not read from file \"%s\": %m", src);
```

03
```
     if (fstat(fd, &statbuf) < 0)
-        pg_fatal("could not open file \"%s\" for reading: %m",
+        pg_fatal("could not stat file \"%s\" for reading: %m",
                  fullpath);
```

--
regards,
Man Zeng
Attachment

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: CREATE TABLE LIKE INCLUDING TRIGGERS
Next
From: Richard Guo
Date:
Subject: Re: Convert NOT IN sublinks to anti-joins when safe