aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorMadeleine Nilsson <madni@cendio.se>2024-11-04 14:59:46 +0100
committerMadeleine Nilsson <madni@cendio.se>2024-11-11 11:23:59 +0100
commit5b74bf1bbd4aef9f71ef76b718c79fe7b09bf5f5 (patch)
tree6c5cabc7ce61b3cf9ee622d0f7ae916e3f0d5bee /java
parent260a3e0db5d09be0cb732d1a7ce8e758079e0c11 (diff)
downloadtigervnc-5b74bf1bbd4aef9f71ef76b718c79fe7b09bf5f5.tar.gz
tigervnc-5b74bf1bbd4aef9f71ef76b718c79fe7b09bf5f5.zip
Standardize log message prefix format
The reason for this is to keep a consistency through out the project.
Diffstat (limited to 'java')
-rw-r--r--java/com/jcraft/jsch/ChannelSftp.java12
-rw-r--r--java/com/tigervnc/vncviewer/FileUtils.java2
2 files changed, 7 insertions, 7 deletions
diff --git a/java/com/jcraft/jsch/ChannelSftp.java b/java/com/jcraft/jsch/ChannelSftp.java
index d2c0913d..58317170 100644
--- a/java/com/jcraft/jsch/ChannelSftp.java
+++ b/java/com/jcraft/jsch/ChannelSftp.java
@@ -1382,7 +1382,7 @@ public class ChannelSftp extends ChannelSession{
try{
sendREAD(handle, request_offset, request_len, rq);
}
- catch(Exception e){ throw new IOException("error"); }
+ catch(Exception e){ throw new IOException("Error"); }
request_offset += request_len;
}
}
@@ -1403,11 +1403,11 @@ public class ChannelSftp extends ChannelSession{
return 0;
}
catch(SftpException e){
- throw new IOException("error: "+e.toString());
+ throw new IOException("Error: "+e.toString());
}
if(type!=SSH_FXP_STATUS && type!=SSH_FXP_DATA){
- throw new IOException("error");
+ throw new IOException("Error");
}
if(type==SSH_FXP_STATUS){
fill(buf, rest_length);
@@ -1418,7 +1418,7 @@ public class ChannelSftp extends ChannelSession{
return -1;
}
//throwStatusError(buf, i);
- throw new IOException("error");
+ throw new IOException("Error");
}
buf.rewind();
@@ -1477,7 +1477,7 @@ public class ChannelSftp extends ChannelSession{
rr.offset+length_of_data,
(int)(rr.length-length_of_data), rq);
}
- catch(Exception e){ throw new IOException("error"); }
+ catch(Exception e){ throw new IOException("Error"); }
request_offset=rr.offset+rr.length;
}
@@ -1502,7 +1502,7 @@ public class ChannelSftp extends ChannelSession{
if(monitor!=null)monitor.end();
rq.cancel(header, buf);
try{_sendCLOSE(handle, header);}
- catch(Exception e){throw new IOException("error");}
+ catch(Exception e){throw new IOException("Error");}
}
};
return in;
diff --git a/java/com/tigervnc/vncviewer/FileUtils.java b/java/com/tigervnc/vncviewer/FileUtils.java
index 6b82d3e2..cb5564be 100644
--- a/java/com/tigervnc/vncviewer/FileUtils.java
+++ b/java/com/tigervnc/vncviewer/FileUtils.java
@@ -80,7 +80,7 @@ public class FileUtils {
return newDir.getPath();
} else {
if (legacyDir.exists()) {
- vlog.info("WARNING: ~/.vnc is deprecated, please consult 'man vncviewer' for paths to migrate to.");
+ vlog.info("Warning: ~/.vnc is deprecated, please consult 'man vncviewer' for paths to migrate to.");
return legacyDir.getPath();
}
String xdgBaseDir = System.getenv(xdgEnv);