diff --git a/src/api.ts b/src/api.ts index 4a5c3fb..a2828e4 100644 --- a/src/api.ts +++ b/src/api.ts @@ -207,7 +207,9 @@ export async function createAPI(config: ClusterConfiguration, login: schema.Logi if (status.jobState === 'COMPLETED') { return await api.job.getResults(jobId, offset, limit) } else { - throw status.errorMessage + if (status.errorMessage && status.errorMessage !== '') { + throw status.errorMessage + } } } else if (timeout !== undefined) { if (new Date().getTime() > (start + timeout)) {