Fix propagation of failures in installer scripts
[osm/devops.git] / common / logging
index a48e01d..080eb63 100644 (file)
@@ -34,6 +34,13 @@ print_stack() {
 }
 
 
+FATAL_TRACK() {
+       echo -e "\n### $(date) ${FUNCNAME[1]}: FATAL error: $*" >&2
+       track end fatal $1 "'${@:2}'" none
+       print_stack
+       exit 1
+}
+
 FATAL() { 
        echo -e "\n### $(date) ${FUNCNAME[1]}: FATAL error: $*" >&2
        print_stack