Skip to content

Commit

Permalink
add compute cluster invalid value error
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Jan 24, 2024
1 parent f73178c commit c758268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions threads/compute-clusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class ComputeCluster {
cluster = await datex(cluster);
if (!(cluster instanceof ComputeCluster)) throw new Error(`"${cluster}" is not a ComputeCluster`)
}
else if (!(cluster instanceof ComputeCluster)) throw new Error(`cluster must be a ComputeCluster or a DATEX identifier (e.g. "@myEndpoint.myComputCluster")`)

const ptr = Datex.Pointer.getByValue(cluster);
if (!ptr) throw new Error(`ComputeCluster "${cluster.name}" is not a bound to a pointer`)
Expand Down

0 comments on commit c758268

Please sign in to comment.