Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 99e5766

Browse files
committed
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
1 parent af492eb commit 99e5766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ if uuidopt != 'none'
13461346
uuidfunc = 'uuid_export'
13471347
uuidheader = 'uuid.h'
13481348
else
1349-
error('huh')
1349+
error('unknown uuid build option value: @0@'.format(uuidopt))
13501350
endif
13511351

13521352
if not cc.has_header_symbol(uuidheader, uuidfunc, args: test_c_args, dependencies: uuid)

0 commit comments

Comments
 (0)