Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[#907] make configuration file error more descriptive#909

Draft
saraanbih wants to merge 1 commit into
pgmoneta:mainfrom
saraanbih:config-error
Draft

[#907] make configuration file error more descriptive#909
saraanbih wants to merge 1 commit into
pgmoneta:mainfrom
saraanbih:config-error

Conversation

@saraanbih
Copy link
Copy Markdown
Collaborator

Fixes [#907]

@saraanbih saraanbih force-pushed the config-error branch 2 times, most recently from 0384478 to 1a551c4 Compare February 3, 2026 19:03
@jesperpedersen jesperpedersen self-requested a review February 3, 2026 19:04
@jesperpedersen jesperpedersen added the enhancement Improvement to an existing feature label Feb 3, 2026
@saraanbih
Copy link
Copy Markdown
Collaborator Author

Hi Mr. @jesperpedersen

PTAL :)

@saraanbih saraanbih force-pushed the config-error branch 5 times, most recently from 702bf9d to 40581ba Compare February 4, 2026 20:22
Comment thread src/cli.c Outdated
errx(1, "Configuration syntax error in: %s\n"
"\n"
"Valid pgmoneta-cli configuration options:\n"
" - host = hostname (required)\n"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its either host / port or unix_socket_dir -- if -h / -p isn't specified

remove spaces

make the error config message more descriptive

add config check for clic and walfilter

add more details in error message

adjust format

fix connection type message
}
else
{
snprintf(error_context, sizeof(error_context),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use pgmoneta_snprintf instead

@saraanbih saraanbih marked this pull request as draft March 22, 2026 11:28
@jesperpedersen
Copy link
Copy Markdown
Member

@saraanbih Update ?

@saraanbih
Copy link
Copy Markdown
Collaborator Author

@jesperpedersen

@saraanbih Update ?

I have forgotten it, so I made it a draft until I return to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants