Let me introduce you to my friend..
try{}
catch{}
Place your entire content of your function inside a trycatch and it will print out the exact exception and what lines are throwing it vs just the generic one you are getting
eg
try{
//blablabla
//loading lots of random stuff
}
catch (Exception P){Console.WriteLine(P);}
or program.writeline I suppose if you are using elitecoemu.
try{}
catch{}
Place your entire content of your function inside a trycatch and it will print out the exact exception and what lines are throwing it vs just the generic one you are getting
eg
try{
//blablabla
//loading lots of random stuff
}
catch (Exception P){Console.WriteLine(P);}
or program.writeline I suppose if you are using elitecoemu.