@intuned/runtime-dev 1.0.6-cli-auth.0.0.12-test → 1.0.6-cli-auth.0.0.13-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,8 +137,12 @@ async function runCheckApiViaCLI(authSessionPath) {
137
137
  if (runApiResult.error instanceof _runApi.AutomationError) {
138
138
  throw runApiResult.error.error;
139
139
  }
140
- console.error(runApiResult.error);
141
- throw new Error("Error running auth session check");
140
+ if (runApiResult.error.message === _types.CHECK_FAILED_ERROR_MESSAGE) {
141
+ return false;
142
+ } else {
143
+ console.error(runApiResult.error);
144
+ throw new Error("Error while running check");
145
+ }
142
146
  }
143
147
  const result = runApiResult.value.result;
144
148
  if (!result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-cli-auth.0.0.12-test",
3
+ "version": "1.0.6-cli-auth.0.0.13-test",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",