This brings error reporting back to the usual: either return codes are SR_OK (0) or they are < 1 indicating an error. This fixes bug #633.