public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Print exception message to user if watch observer add fails.
@ 2008-05-13 14:28 tthomas
  0 siblings, 0 replies; only message in thread
From: tthomas @ 2008-05-13 14:28 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  d5bc17c1a45b723f2dcf3b87e5f0695de83524c3 (commit)
      from  a72d896b75eab570ea1125186d52e5ad59799024 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d5bc17c1a45b723f2dcf3b87e5f0695de83524c3
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Tue May 13 10:30:03 2008 -0400

    Print exception message to user if watch observer add fails.
    
    frysk-core/frysk/hpd/ChangeLog:
    2008-05-13  Teresa Thomas  <tthomas@redhat.com>
    
    	* WatchCommand.java (WatchpointObserver.addFailed):
    	Print exception message if observer add failed.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog         |    5 +++++
 frysk-core/frysk/hpd/WatchCommand.java |    3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 7020d48..907551e 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-13  Teresa Thomas  <tthomas@redhat.com>
+
+	* WatchCommand.java (WatchpointObserver.addFailed): 
+	Print exception message if observer add failed.
+
 2008-05-06  Teresa Thomas  <tthomas@redhat.com>
 
 	* WatchCommand.java (interpret): Use
diff --git a/frysk-core/frysk/hpd/WatchCommand.java b/frysk-core/frysk/hpd/WatchCommand.java
index 97266b1..2224fa0 100644
--- a/frysk-core/frysk/hpd/WatchCommand.java
+++ b/frysk-core/frysk/hpd/WatchCommand.java
@@ -145,8 +145,7 @@ class WatchCommand extends ParameterizedCommand {
 	}
 
 	public void addFailed(Object observable, Throwable w) {
-	    throw new RuntimeException("TaskObserver.Watch failed " +
-	    		               "to be added to the task");
+	    cli.outWriter.println ("Watchpoint Error:" + w.getMessage());
 	}
 
 	public void addedTo(Object observable) {


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-13 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-13 14:28 [SCM] master: Print exception message to user if watch observer add fails tthomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).