Fixed the error message when unable to determine an output format