浏览代码

HUE-3935 [core] Also use error code 10 in the catch all of the is_db_alive command

Romain Rigaux 9 年之前
父节点
当前提交
dcc4c54
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/management/commands/is_db_alive.py

+ 1 - 1
desktop/core/src/desktop/management/commands/is_db_alive.py

@@ -72,7 +72,7 @@ class Command(NoArgsCommand):
       db_conn = connections['default']
       db_conn.cursor()
     except ImproperlyConfigured: # Connector not found
-      sys.exit(3)
+      sys.exit(10)
     except OperationalError, e:
       self.stderr.write('Error accessing DB: %s' % e)
       error = str(e)