[Command] :on error [ exit | ignore ] [Description] 
Sets the action to be performed when an error occurs during script or batch execution. When the exit option is used, sqlcmd exits with the appropriate error value. When the ignore option is used, sqlcmd disregards the error and continues executing the batch or script. By default, an error message will be printed.