Student activity logging

What is error for?   It isn't returned and is just a local variable?