if genRuntime fails, return -1 to lineno rather than 0

this is to avoid the run genRuntime multitimes in func lineno