check-abi: Fix error logging for non compatible builds.
Differential Revision: https://phabricator.kde.org/D17880