Commands without images returns exit code 1

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
janko-m
Posts: 4
Joined: 2014-09-24T10:56:15-07:00
Authentication code: 6789

Commands without images returns exit code 1

Post by janko-m »

Commands like these:

Code: Select all

identify -list command
convert -help
identify
all return exit code 1. I think this shouldn't be the case, because no error has happened. They should return exit code 0.

I'm developing a wrapper for ImageMagick, and I'm actually using "identify -list command" to dynamically define methods, but my class for executing commands is setup to automatically raise an error when the status code isn't 0, so executing this command raises an error (because ImageMagick raised it).
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Commands without images returns exit code 1

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.9-9 Beta, available by sometime tomorrow. Thanks.
janko-m
Posts: 4
Joined: 2014-09-24T10:56:15-07:00
Authentication code: 6789

Re: Commands without images returns exit code 1

Post by janko-m »

That was quick! Thanks a lot :)
Post Reply