src: improve messages (and sometime location) of errors and warnings