adjust code to catch and report additional error