.catch() running with nothing returned

How is your errorMessage() function defined?