Package: jparse
Version: 1.4.0-3
Severity: normal

When you feed jparse with an invalid JSON file, the return code is zero.

The syntax error is detected:

Analyzing toto.json ...Error.

JAULA Exception(Error detected during syntax analysis) : Unexpected symbol ':'  
...

But the exit code is not set properly:

% echo $?         
0


-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages jparse depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libjaula1                     1.4.0-3    JSON parser/writer library for C++
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3

jparse recommends no packages.

jparse suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to