nitcc: improve error messages

Signed-off-by: Jean Privat <jean@pryen.org>