message: 661 | feat (cli query): improve error handling
diff: @@ -212,7 +212,7 @@ export default {
  variables,
  });
  - if (data && data !== {}) {
  + if (data && Object.keys(data).length !== 0) {
  print.success("-----------------------------------");
  print.fancy(JSON.stringify(data, null, 2));
  print.success("-----------------------------------");
  @@ -226,6 +226,10 @@ export default {
  print.error("-----------------------------------");
  }
  }
  +
  + if (errors || Object.keys(data).length === 0) {
  + process.exitCode = 1;
  + }
  }
  }
  },
  