moved from log.warn to log.writeln if no srcfile exists.