tests/sys/cddl/zfs/include/logapi.kshlib
Fix _endlog to print any error before calling any cleanup routines.
This behavior confused me more than a few times, since it would
appear that the cleanup routine itself failed rather than the test.
Submitted by: Will
Sponsored by: Spectra Logic Corp