New error handling - error codes are now jb_errs, not ints.