--max-wait timeout still gives exit code 0
Status: Beta
Brought to you by:
hoehrmann
When cutycapt runs into a wait timeout, I don't get a file and the exit code is 0.
The exit code should not be 0 if the wait timeout is reached.
Example:
$ cutycapt --max-wait=1 --url=http://example.org/ --out=/tmp/test.png; echo $?; LC_ALL=C ls -la /tmp/test.png
Got bus address: "unix:abstract=/tmp/dbus-RerxZE3cVN,guid=877affba1e1e82c36b30e99957741fd0"
Connected to accessibility bus at: "unix:abstract=/tmp/dbus-RerxZE3cVN,guid=877affba1e1e82c36b30e99957741fd0"
Registered DEC: true
Registered event listener change listener: true
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
0
ls: cannot access /tmp/test.png: No such file or directory