Browse Source

Added some debugging code to chado_execute_prepared function

spficklin 12 years ago
parent
commit
48dca508d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_core/api/tripal_core.api.inc

+ 2 - 2
tripal_core/api/tripal_core.api.inc

@@ -2664,8 +2664,8 @@ function tripal_core_chado_execute_prepared($statement_name, $sql, $values) {
           case 'text':
             $check = is_string($v);
             if (!$check) {
-              watchdog('tripal_core', "chado_execute_prepared: wrong argument type supplied for '%name' statement. Expected %required but recieved '%value'",
-                array('%name' => $statement_name, '%required' => $required_values[$k], '%value' => print_r($v,TRUE)), WATCHDOG_ERROR);
+              watchdog('tripal_core', "chado_execute_prepared: wrong argument type supplied for '%name' statement, field %k. Expected %required but recieved '%value'",
+                array('%name' => $statement_name, '%k' => $k, '%required' => $required_values[$k], '%value' => print_r($v,TRUE)), WATCHDOG_ERROR);
               return FALSE;
             }
             break;