poke-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] poke: Exit with status code 1 on failure in `-L` mode


From: Jose E. Marchesi
Subject: Re: [PATCH] poke: Exit with status code 1 on failure in `-L` mode
Date: Fri, 18 Dec 2020 10:53:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Mohammad.
OK for master.  Thanks.

> 2020-12-18  Mohammad-Reza Nabipoor  <m.nabipoor@yahoo.com>
>
>       * poke/poke.c (parse_args_2): Go to `exit_failure` when
>       `pk_compile_file` fails.
> ---
>  ChangeLog   | 5 +++++
>  poke/poke.c | 2 +-
>  2 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index 09794cc0..8878ea88 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2020-12-18  Mohammad-Reza Nabipoor  <m.nabipoor@yahoo.com>
> +
> +     * poke/poke.c (parse_args_2): Go to `exit_failure` when
> +     `pk_compile_file` fails.
> +
>  2020-12-17  Jose E. Marchesi  <jemarch@gnu.org>
>  
>       * testsuite/poke.pickles/color-test.pk: Fix typo.
> diff --git a/poke/poke.c b/poke/poke.c
> index b67e5b91..73fc6eba 100644
> --- a/poke/poke.c
> +++ b/poke/poke.c
> @@ -437,7 +437,7 @@ parse_args_2 (int argc, char *argv[])
>                 return.  */
>              set_script_args (argc, argv);
>              if (pk_compile_file (poke_compiler, optarg, &exit_status) != 
> PK_OK)
> -              goto exit_success;
> +              goto exit_failure;
>  
>              finalize ();
>              exit (exit_status);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]