Added a displayError function which unpicks an ApiFailureMessage if its there
Reformatted file