How can I make restore_cache job "fail" if it encounters "No cache is found for key:"?

If the job objectively fails, it still reports as passing (with a green tick).

Is there a way to make restore_cache “exit 1”?