[gnome-usage] system-monitor: more adequate warning message



commit cf7505fd61bebb46c63109b46b702a13e5acfa5b
Author: Christian Kellner <christian kellner me>
Date:   Thu Jul 18 10:48:47 2019 +0200

    system-monitor: more adequate warning message
    
    If we fail to sanitize the command line (due to regex failures),
    indicate that more clearly.

 src/system-monitor.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/system-monitor.vala b/src/system-monitor.vala
index 0605562..184e4ef 100644
--- a/src/system-monitor.vala
+++ b/src/system-monitor.vala
@@ -172,7 +172,7 @@ namespace Usage
                     var rgx = new Regex("[^a-zA-Z0-9._-]");
                     cmd = rgx.replace(commandline, commandline.length, 0, "");
                 } catch (RegexError e) {
-                    warning ("Unable to obtain process command: %s", e.message);
+                    warning ("Unable to sanitize command line: %s", e.message);
                 }
             }
             return cmd;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]