fixed usage of 'error' attribute in shortcode

'error' attribute didn't actually do anything; now it does.