From a922ac5f5decccc507cde2f06b1fd430b9206279 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Mon, 4 Jan 2021 19:11:48 -0600
Subject: [PATCH] Double excape quote on error detail

---
 workflow/rna-seq.nf | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index 2b621ee..3b34364 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -2002,22 +2002,22 @@ process failExecutionRun {
       else
         endInfer="unknown"
       fi
-      pipelineError_details=\$(echo \${pipelineError_details}"Paired_End: submitted value = \""\${endMeta}"\" while inferred value = \""\${endsInfer}"\". ")
+      pipelineError_details=\$(echo \${pipelineError_details}"Paired_End: submitted value = \\""\${endMeta}"\\" while inferred value = \\""\${endsInfer}"\\". ")
       #pipelineError_details=\$(echo \${pipelineError_details}"|*Paired_End*|"\${endMeta}"|"\${endsInfer}"|\\n ")
     fi
     if ${pipelineError_stranded}
     then
-      pipelineError_details=\$(echo \${pipelineError_details}"Strandedness: submitted value = \"${strandedMeta}\" while inferred value = \"${strandedInfer}\". ")
+      pipelineError_details=\$(echo \${pipelineError_details}"Strandedness: submitted value = \\"${strandedMeta}\\" while inferred value = \\"${strandedInfer}\\". ")
       #pipelineError_details=\$(echo \${pipelineError_details}"|*Strandedness*|${strandedMeta}|"${strandedInfer}|\\n ")
     fi
     if ${pipelineError_spike}
     then
-      pipelineError_details=\$(echo \${pipelineError_details}"Used_Spike_Ins: submitted value = \"${spikeMeta}\" while inferred value = \"${spikeInfer}\". ")
+      pipelineError_details=\$(echo \${pipelineError_details}"Used_Spike_Ins: submitted value = \\"${spikeMeta}\\" while inferred value = \\"${spikeInfer}\\". ")
       #pipelineError_details=\$(echo \${pipelineError_details}"|*Used_Spike_Ins*|${spikeMeta}|${spikeInfer}|\\n ")
     fi
     if ${pipelineError_species}
     then
-      pipelineError_details=\$(echo \${pipelineError_details}"Species: submitted value = \"${speciesMeta}\" while inferred value = \"${speciesInfer}\". ")
+      pipelineError_details=\$(echo \${pipelineError_details}"Species: submitted value = \\"${speciesMeta}\\" while inferred value = \\"${speciesInfer}\\". ")
       #pipelineError_details=\$(echo \${pipelineError_details}"|*Species*|${speciesMeta}|"${speciesInfer}|\\n ")
     fi
     pipelineError_details=\$(echo "\${pipelineError_details::-1}")
-- 
GitLab