Fixed doubled output

When an error or warning occures the output doubles