Closed joel-coffman closed 2 years ago
psql returns 0 to the shell even when errors occur in scripts unless the variable ON_ERROR_STOP is set. Hence, this change sets that variable so that any errors restoring a database cause the script to exit with an error code.
psql returns 0 to the shell even when errors occur in scripts unless the variable ON_ERROR_STOP is set. Hence, this change sets that variable so that any errors restoring a database cause the script to exit with an error code.