public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Tweak Error values in common utilities.
@ 2007-12-07 16:49 pmuldoon
  0 siblings, 0 replies; only message in thread
From: pmuldoon @ 2007-12-07 16:49 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  f58119c5647ea4f0fde832a9bb080227926a52db (commit)
      from  01f016ef60b42e011ffa962ef5524c687e0293ef (commit)

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

- Log -----------------------------------------------------------------
commit f58119c5647ea4f0fde832a9bb080227926a52db
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Fri Dec 7 16:49:17 2007 +0000

    Tweak Error values in common utilities.
    
    2007-12-07  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* Util.java (getProcFromCoreFile): Tweak Error text.
    	(getProcFromCoreExePair): Ditto.
    	(getProcFromPid): Ditto.
    	(getProcFromExeFile)L Ditto.

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

Summary of changes:
 frysk-core/frysk/util/ChangeLog |    5 +++++
 frysk-core/frysk/util/Util.java |   18 +++++++++---------
 2 files changed, 14 insertions(+), 9 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/util/ChangeLog b/frysk-core/frysk/util/ChangeLog
index c404a5b..fa30995 100644
--- a/frysk-core/frysk/util/ChangeLog
+++ b/frysk-core/frysk/util/ChangeLog
@@ -1,5 +1,10 @@
 2007-12-07  Phil Muldoon  <pmuldoon@redhat.com>
 
+	* Util.java (getProcFromCoreFile): Tweak Error text.
+	(getProcFromCoreExePair): Ditto.
+	(getProcFromPid): Ditto.
+	(getProcFromExeFile)L Ditto. 
+	
 	* AuxvStringBuilder.java: New.
 
 2007-12-04  Andrew Cagney  <cagney@redhat.com>
diff --git a/frysk-core/frysk/util/Util.java b/frysk-core/frysk/util/Util.java
index 828b859..59be104 100644
--- a/frysk-core/frysk/util/Util.java
+++ b/frysk-core/frysk/util/Util.java
@@ -1,6 +1,6 @@
 // This file is part of the program FRYSK.
 //
-// Copyright 2005, Red Hat Inc.
+// Copyright 2005, 2007, Red Hat Inc.
 //
 // FRYSK is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by
@@ -73,10 +73,10 @@ public class Util
     else
       {
         proc = null;
-        throw new RuntimeException("No proc in this corefile");
+        throw new RuntimeException("Cannot find a process in this corefile.");
       }
     if (iterator.hasNext())
-      throw new RuntimeException("Too many procs on this corefile");
+      throw new RuntimeException("Too many processes in this corefile.");
     
     return proc;
   }
@@ -93,10 +93,10 @@ public class Util
     else
       {
         proc = null;
-        throw new RuntimeException("No proc in this corefile");
+        throw new RuntimeException("Cannot find a process in this corefile.");
       }
     if (iterator.hasNext())
-      throw new RuntimeException("Too many procs on this corefile");
+      throw new RuntimeException("Too many processes in this corefile.");
     
     return proc;
   }
@@ -125,8 +125,8 @@ public class Util
 	  
 	  public void procNotFound (ProcId procId, Exception e)
 	  { 
-	      System.err.println("Couldn't find the process: "
-				 + procId.toString());
+	      System.err.println("Could not find the process: "
+				 + procId.intValue());
 	      Manager.eventLoop.requestStop();  
 	  } 
       }
@@ -151,10 +151,10 @@ public class Util
       else
         {
           proc = null;
-          throw new RuntimeException("No proc in this exefile");
+          throw new RuntimeException("Cannot find a process in this executable.");
         }
       if (iterator.hasNext())
-        throw new RuntimeException("Too many procs in this exefile");
+        throw new RuntimeException("Too many processes in this executable.");
       
       return proc;
     }


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


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

only message in thread, other threads:[~2007-12-07 16:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-07 16:49 [SCM] master: Tweak Error values in common utilities pmuldoon

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).