Added referrer to error message.