From 0de0752af7559d553d0ca9c8ea49e91aa5d6315d Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Wed, 21 Jun 2017 10:28:56 +0200 Subject: [PATCH] Make error message for missing biomaterial more informative --- src/cli/import/commands/Importer_Expressions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/import/commands/Importer_Expressions.php b/src/cli/import/commands/Importer_Expressions.php index 59f5cea6..f9dd0dde 100644 --- a/src/cli/import/commands/Importer_Expressions.php +++ b/src/cli/import/commands/Importer_Expressions.php @@ -60,7 +60,7 @@ static function import($options) { $statement_get_biomaterial_id->execute(array($biomaterial_names[$i])); $biomaterial_ids[$i] = $statement_get_biomaterial_id->fetchColumn(); if (!$biomaterial_ids[$i]) { - throw new \ErrorException('Biomaterial with this name not defined'); + throw new \ErrorException('Biomaterial with this name not defined: '.$biomaterial_names[$i]); } }