Bugfix: typo and better english

This commit is contained in:
Laurent Clouet
2014-12-16 23:02:14 +00:00
parent 2e65795c0f
commit d4a1cd4de1
2 changed files with 14 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ public class Client {
ret = this.server.getConfiguration(); ret = this.server.getConfiguration();
if (ret != Error.Type.OK) { if (ret != Error.Type.OK) {
this.gui.error(Error.humainString(ret)); this.gui.error(Error.humanString(ret));
if (ret != Error.Type.AUTHENTICATION_FAILED) { if (ret != Error.Type.AUTHENTICATION_FAILED) {
Log.printCheckPoint(step); Log.printCheckPoint(step);
} }
@@ -155,7 +155,7 @@ public class Client {
return -2; return -2;
} }
catch (FermeExceptionSessionDisabled e) { catch (FermeExceptionSessionDisabled e) {
this.gui.error(Error.humainString(Error.Type.SESSION_DISABLED)); this.gui.error(Error.humanString(Error.Type.SESSION_DISABLED));
// should wait forever to actually display the message to the user // should wait forever to actually display the message to the user
while (true) { while (true) {
try { try {
@@ -232,7 +232,7 @@ public class Client {
if (ret != Error.Type.OK) { if (ret != Error.Type.OK) {
Job frame_to_reset = this.renderingJob; // copie it because the sendError will take ~5min to execute Job frame_to_reset = this.renderingJob; // copie it because the sendError will take ~5min to execute
this.renderingJob = null; this.renderingJob = null;
this.gui.error(Error.humainString(ret)); this.gui.error(Error.humanString(ret));
this.sendError(step, frame_to_reset, ret); this.sendError(step, frame_to_reset, ret);
this.log.removeCheckPoint(step); this.log.removeCheckPoint(step);
continue; continue;
@@ -273,7 +273,7 @@ public class Client {
} }
} }
catch (Exception e1) { catch (Exception e1) {
// no exception should be raise to actual launcher (applet or standalone) // no exception should be raised in the actual launcher (applet or standalone)
return -99; // the this.stop will be done after the return of this.run() return -99; // the this.stop will be done after the return of this.run()
} }
@@ -343,7 +343,7 @@ public class Client {
//gui.status("Sending frame"); //gui.status("Sending frame");
ret = confirmJob(job_to_send); ret = confirmJob(job_to_send);
if (ret != Error.Type.OK) { if (ret != Error.Type.OK) {
this.gui.error(Error.humainString(ret)); this.gui.error(Error.humanString(ret));
sendError(step); sendError(step);
} }
else { else {
@@ -471,12 +471,12 @@ public class Client {
File renderer_file = new File(ajob.getRendererPath()); File renderer_file = new File(ajob.getRendererPath());
if (scene_file.exists() == false) { if (scene_file.exists() == false) {
this.log.error("Client::work job prepration failed (scene file '" + scene_file.getAbsolutePath() + "' does not exist)"); this.log.error("Client::work job preparation failed (scene file '" + scene_file.getAbsolutePath() + "' does not exist)");
return Error.Type.MISSING_SCENE; return Error.Type.MISSING_SCENE;
} }
if (renderer_file.exists() == false) { if (renderer_file.exists() == false) {
this.log.error("Client::work job prepration failed (renderer file '" + renderer_file.getAbsolutePath() + "' does not exist)"); this.log.error("Client::work job preparation failed (renderer file '" + renderer_file.getAbsolutePath() + "' does not exist)");
return Error.Type.MISSING_RENDER; return Error.Type.MISSING_RENDER;
} }
@@ -639,7 +639,7 @@ public class Client {
this.log.error("Client::runRenderer no picture file found (after finished render (namefile_without_extension " + namefile_without_extension + ")"); this.log.error("Client::runRenderer no picture file found (after finished render (namefile_without_extension " + namefile_without_extension + ")");
if (ajob.getAskForRendererKill()) { if (ajob.getAskForRendererKill()) {
this.log.debug("Client::runRenderer renderer didn't generate any frame but it due to a kill request"); this.log.debug("Client::runRenderer renderer didn't generate any frame but died due to a kill request");
return Error.Type.RENDERER_KILLED; return Error.Type.RENDERER_KILLED;
} }
@@ -658,7 +658,7 @@ public class Client {
} }
if (exit_value == 127 && ajob.getRenderDuration() < 10) { if (exit_value == 127 && ajob.getRenderDuration() < 10) {
this.log.error("Client::runRenderer renderer return 127 and render time took " + ajob.getRenderDuration() + "s, mostly missing libraries"); this.log.error("Client::runRenderer renderer returned 127 and took " + ajob.getRenderDuration() + "s, some libraries may be missing");
return Error.Type.RENDERER_MISSING_LIBRARIES; return Error.Type.RENDERER_MISSING_LIBRARIES;
} }
@@ -688,7 +688,7 @@ public class Client {
File renderer_achive_local_path_file = new File(achive_local_path); File renderer_achive_local_path_file = new File(achive_local_path);
if (renderer_achive_local_path_file.exists()) { if (renderer_achive_local_path_file.exists()) {
// the archive have been already downloaded // the archive have already been downloaded
} }
else { else {
// we must download the archive // we must download the archive

View File

@@ -111,7 +111,7 @@ public class Error {
} }
} }
public static String humainString(Type in) { public static String humanString(Type in) {
switch (in) { switch (in) {
case TOO_OLD_CLIENT: case TOO_OLD_CLIENT:
return "This client is too old, you need to update it"; return "This client is too old, you need to update it";
@@ -122,11 +122,11 @@ public class Error {
case RENDERER_CRASHED: case RENDERER_CRASHED:
return "Renderer have crashed. It's mostly due to a bad project or not enough memory. There is nothing you can do about it. Will try an another project in few minutes."; return "Renderer have crashed. It's mostly due to a bad project or not enough memory. There is nothing you can do about it. Will try an another project in few minutes.";
case RENDERER_MISSING_LIBRARIES: case RENDERER_MISSING_LIBRARIES:
return "Failed to launch runderer. Please check if you have necessary libraries installed and if you have enough free place in working directory."; return "Failed to launch renderer. Please check if you have necessary libraries installed and if you have enough free place in working directory.";
case RENDERER_KILLED: case RENDERER_KILLED:
return "The render stop because either you ask to stop or the server (usually render time too high)."; return "The renderer stopped because either you asked to stop or the server did (usually for a render time too high).";
case SESSION_DISABLED: case SESSION_DISABLED:
return "The server have disabled your session. It's mostly because your client generate broken frame (gpu not compatible for example)."; return "The server have disabled your session. Your client may have generated a broken frame (GPU not compatible, not enough RAM/VRAM, etc).";
default: default:
return in.toString(); return in.toString();
} }