Re: [PATCH] Fixed syntax error in debugger command.

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

 



On Thu, 2016-09-08 at 14:51 +0200, Oliver Gutierrez wrote:
> Debugger is not an object or command. It is a reserved word and
> DEBUG > 0 && syntax does not work with it
> ---
>  spiceconn.js | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/spiceconn.js b/spiceconn.js
> index 010a446..796f954 100644
> --- a/spiceconn.js
> +++ b/spiceconn.js
> @@ -189,8 +189,10 @@ SpiceConn.prototype =
>  
>                  if (msg.type > 500)
>                  {
> -                    DEBUG > 0 && alert("Something has gone very
> wrong; we think we have message of type " + msg.type);
> -                    DEBUG > 0 && debugger;
> +                    if (DEBUG > 0) {
> +                      alert("Something has gone very wrong; we
> think we have message of type " + msg.type);
> +                      debugger;
ack, I will adjust the indentation ^ before pushing
> +                    }

Thanks,
Pavel

>                  }
>  
>                  if (msg.size == 0)
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]