mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
meson: Use a better error message in an impossible case
Meson validates 'choice' options for us, so technically this case is impossible. A better error message helps people reading the code understand what is going on in that branch. Author: Tristan Partin <tristan@neon.tech> Discussion: https://www.postgresql.org/message-id/flat/CSPIJVUDZFKX.3KHMOAVGF94RV%40c3po
This commit is contained in:
parent
af492eb6d6
commit
99e5766351
@ -1346,7 +1346,7 @@ if uuidopt != 'none'
|
||||
uuidfunc = 'uuid_export'
|
||||
uuidheader = 'uuid.h'
|
||||
else
|
||||
error('huh')
|
||||
error('unknown uuid build option value: @0@'.format(uuidopt))
|
||||
endif
|
||||
|
||||
if not cc.has_header_symbol(uuidheader, uuidfunc, args: test_c_args, dependencies: uuid)
|
||||
|
Loading…
Reference in New Issue
Block a user