Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Simulation/EntryPointDriver.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ let ``Submit has required options`` () =
let ``Submit catches exceptions`` () =
let given = test "Returns Unit"
given submitWithErrorTarget
|> failsWith "Something went wrong when submitting the program to the Azure Quantum service.
|> failsWith "An error occurred when submitting to the Azure Quantum service.

This machine always has an error."

Expand Down
4 changes: 2 additions & 2 deletions src/Simulation/EntryPointDriver/Azure/Azure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ private static async Task<int> DisplayJobOrError(AzureSettings settings, Task<IQ
{
void DisplayAzureQuantumException(AzureQuantumException ex) =>
DisplayError(
"Something went wrong when submitting the program to the Azure Quantum service.",
"An error occurred when submitting to the Azure Quantum service.",
ex.Message);

void DisplayQuantumProcessorTranslationException(QuantumProcessorTranslationException ex) =>
DisplayError(
"Something went wrong when performing translation to the intermediate representation used by the target quantum machine.",
"Unable to translate the program for execution on the target quantum machine.",
ex.Message);

bool HandleTargetInvocationException(TargetInvocationException ex)
Expand Down