Changed the signature of checkToken and checkFileToken to return error instead of bool, so that more detailed information can be relayed about the failure.
Improved logging message clarity and intention
Expose output errors that were previously not captured
checkToken
andcheckFileToken
to returnerror
instead ofbool
, so that more detailed information can be relayed about the failure.