Skip to content

Commit

Permalink
make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed Sep 23, 2024
1 parent a2a41c6 commit c50e6d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli/lib/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c50e6d9

Please sign in to comment.