Text this: Credit and macroeconomic dynamics of epidemics