+collection argument function error handling
Add more details for error output