updated errors to error closes #294

(this is a demo)