Better log message when code could not be included