lib: fix newline in error output (RHBZ#923355).