diff --git a/src/RNAseq_XGR.nf b/src/RNAseq_XGR.nf
index ef6af65e6519c1b919a3f8442cf5464d312c9a24..cc2ecc880feebb0ff23416092e9f9476d0d766ff 100644
--- a/src/RNAseq_XGR.nf
+++ b/src/RNAseq_XGR.nf
@@ -136,7 +136,7 @@ workflow {
   if (params.idx == "") {
     Channel
       .fromPath( params.fasta )
-      .ifEmpty { error "Cannot find any files matching: ${params.genome}" }
+      .ifEmpty { error "Cannot find any files matching: ${params.fasta}" }
       .map{it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
       .set { genome_file }