message: handle loading config error
diff: @@ -18,6 +18,9 @@ let config: {
  export async function initConfig() {
  config.nodeId = customAlphabet('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-', 11)();
  config.gateway = (await loadConfig()) as GatewayConfig;
  + if (!config.gateway) {
  + throw new Error('Gateway config was not found, open config/gateway.yaml');
  + }
  useEnv(config.gateway);
  }
  