Hey Admicos - I'm not 100% sure this is the issue, but...how did you load your API? Like this?
os.loadAPI("myCustomAPI") --# or whatever your API is named
In the above example, you'd access the getFileInfo function of your API by doing this
print(myCustomAPI.getFileInfo(var1, arg[2]))
If your API is named getFileInfo, then you load it and access it's functions by name like so...
os.loadAPI("getFileInfo")
--# other stuff
print(getFileInfo.myCustomFunction(var1, arg[2]))
Without seeing your API and how you are loading it, that's the first thing that stands out to me. For reference -
os.loadAPI
Although I've used pcall, I'm no expert on its use and I have a question for a more seasoned pro...does Admicos main() function need to return a boolean and/or error for the pcall or is that handled automatically based on whether or not main() errors out?
EDIT: question has been answered by the resolution of this thread - the function does NOT need to return anything as the pcall does this
Edited by Dog, 19 September 2014 - 08:50 PM.