Report on cache failures for cmd.script states

This commit will report that the source script failed to cache, rather
than misreporting that the script was run when it couldn't possibly
have run.
Merge pull request #6235 from terminalmage/issue6230

Report on cache failures for cmd.script states