Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses/director tests/libcurses: fix error mess...



details:   https://anonhg.NetBSD.org/src/rev/7640e3f42c04
branches:  trunk
changeset: 952338:7640e3f42c04
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 13 08:43:03 2021 +0000

description:
tests/libcurses: fix error messages

diffstat:

 tests/lib/libcurses/director/testlang_parse.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r e35ae477ee8f -r 7640e3f42c04 tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y     Sat Feb 13 08:37:21 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y     Sat Feb 13 08:43:03 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_parse.y,v 1.46 2021/02/13 08:14:46 rillig Exp $       */
+/*     $NetBSD: testlang_parse.y,v 1.47 2021/02/13 08:43:03 rillig Exp $       */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -767,7 +767,7 @@
        if (cur.arg_type == data_var) {
                cur.var_index = find_var_index(arg);
                if (cur.var_index < 0)
-                       err(1, "%s:%zu: Invalid variable %s",
+                       errx(1, "%s:%zu: Invalid variable %s",
                            cur_file, line, str);
        } else if (cur.arg_type == data_byte) {
                ret = arg;
@@ -1085,7 +1085,7 @@
         */
        read_cmd_pipe(&returns_count);
        if (returns_count.data_type != data_count)
-               err(2, "expected return type of data_count but received %s",
+               errx(2, "expected return type of data_count but received %s",
                    enum_names[returns_count.data_type]);
 
        perform_delay(&delay_post_call); /* let slave catch up */



Home | Main Index | Thread Index | Old Index