# HG changeset patch # User Rik # Date 1323890926 28800 # Node ID b5a8e245b4eb8180a8cf2adf9663bfddc3c2670a # Parent fafd2f45bfa5db941b6212ef5d7b453324e844bf Change phrasing to more assertive error() messages in debug commands * debug.cc: Change phrasing to more assertive error() messages in debug commands diff --git a/src/debug.cc b/src/debug.cc --- a/src/debug.cc +++ b/src/debug.cc @@ -308,7 +308,7 @@ } } else - error ("add_breakpoint: unable to find the function requested\n"); + error ("add_breakpoint: unable to find the requested function\n"); tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; @@ -363,7 +363,7 @@ } } else - error ("remove_breakpoint: unable to find the function requested\n"); + error ("remove_breakpoint: unable to find the requested function\n"); } tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; @@ -403,7 +403,7 @@ } else if (! silent) error ("remove_all_breakpoint_in_file: " - "unable to find the function requested\n"); + "unable to find the requested function\n"); tree_evaluator::debug_mode = bp_table::have_breakpoints () || Vdebugging; @@ -740,7 +740,7 @@ octave_stdout << " " << std::endl; } else - error ("dbwhere: must be inside of a user function to use dbwhere\n"); + error ("dbwhere: must be inside a user function to use dbwhere\n"); return retval; } @@ -819,7 +819,7 @@ if (dbg_fcn) do_dbtype (octave_stdout, dbg_fcn->name (), 0, INT_MAX); else - error ("dbtype: must be in a user function to give no arguments to dbtype\n"); + error ("dbtype: must be inside a user function to give no arguments to dbtype\n"); break; case 1: // (dbtype func) || (dbtype start:end) @@ -931,7 +931,7 @@ if (n > 0) nskip = n; else - error ("dbstack: expecting N to be a nonnegative integer"); + error ("dbstack: N must be a non-negative integer"); } if (! error_state) @@ -1164,7 +1164,7 @@ } } else - error ("dbstep: expecting character string as argument"); + error ("dbstep: input argument must be a character string"); } else {