templates / branches--on commit doc: document error handling functions and conventions (1f23cfe)
   1: this is just to ensure the directory exists.