Fix error codes and bool handling.

1 job for develop