1747f91 Issue 50689 - Failed db restore task does not report an error

Authored and Committed by mreynolds a year ago
    Issue 50689 - Failed db restore task does not report an error
    
    Bug Description: If you have a back up that contains a backend that
                     is not configured the restore fails, but a success
                     return code is returned to the client.  This happens
                     becuase the return code gets overwritten after the
                     failure.
    
    Fix Description: Preserve the error code upon failure and properly update
                     the task exit code.
    
    relates: https://pagure.io/389-ds-base/issue/50689
    
    Reviewed by: tboardaz & lkrispen(Thanks!!)
    
    Never rewrite the orginal error code