From c50e6d93be8a6376ba12f5c06b50cc1a849dfcf4 Mon Sep 17 00:00:00 2001 From: Giacomo Citi Date: Mon, 23 Sep 2024 18:14:20 +0200 Subject: [PATCH] make test pass --- cli/lib/job.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/lib/job.ts b/cli/lib/job.ts index 414cc3929..a6600777b 100644 --- a/cli/lib/job.ts +++ b/cli/lib/job.ts @@ -32,13 +32,13 @@ async function loadTransformJob(jobUri: string, log: Logger, variables: Params[' throw new Error(`Did not find representation of job ${jobUri}. Server responded ${response?.xhr.status}`) } - if (!representation.root.cubeGraph) { - throw new Error('Cannot transform project. Missing output cube id') + if (representation.root.cubeGraph) { + log.info(`Will write output triples to graph <${representation.root.cubeGraph.value}>`) + variables.set('graph', representation.root.cubeGraph.value) + } else { + log.warn('Cannot transform project. Missing output cube id') } - log.info(`Will write output triples to graph <${representation.root.cubeGraph.value}>`) - variables.set('graph', representation.root.cubeGraph.value) - return representation.root }