From 99e57663518b0eaf8fa69d20d0e796321bc8e558 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 29 Jun 2023 13:06:41 +0200 Subject: [PATCH] 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 Discussion: https://www.postgresql.org/message-id/flat/CSPIJVUDZFKX.3KHMOAVGF94RV%40c3po --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c0c00d2235..77e975051d 100644 --- a/meson.build +++ b/meson.build @@ -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)