Added configuration option for throwing an error