Added error messages on snippet creation