Add onError.
Merge branch 'master' of github.com:pkaminski/altfire