Make the getErrorMessage() function return the string value "Check your connection".

Make sure to assemble return "Check your connection".