提交 27ba026f 编写于 作者: A Ashwin Agrawal

Improve error handling in pg_regress for commit c8907e82

上级 8bfa2d6f
......@@ -782,6 +782,12 @@ convert_sourcefiles_in(char *source_subdir, char *dest_dir, char *dest_subdir, c
repls.content_zero_hostname = content_zero_hostname;
repls.username = get_user_name(&errstr);
if (repls.username == NULL)
{
fprintf(stderr, "%s: %s\n", progname, errstr);
exit_nicely(2);
}
/* finally loop on each file and do the replacement */
for (name = names; *name; name++)
{
......@@ -3235,7 +3241,7 @@ get_host_name(int16 contentid, char role)
hostname = psprintf("%s", trim_white_space(line));
if (hostname == NULL)
if (strcmp("", hostname) == 0)
{
fprintf(stderr, _("%s: failed to determine hostname for content 0 primary\n"),
progname);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册