Add error "Cannot read file"
This commit is contained in:
@@ -54,6 +54,7 @@ public class Error {
|
|||||||
IMAGE_WRONG_DIMENSION(26),
|
IMAGE_WRONG_DIMENSION(26),
|
||||||
CURRENTLY_HEADLESS(28),
|
CURRENTLY_HEADLESS(28),
|
||||||
DENOISING_NOT_SUPPORTED(29),
|
DENOISING_NOT_SUPPORTED(29),
|
||||||
|
CANNOT_READ_FILE(30),
|
||||||
|
|
||||||
// internal error handling
|
// internal error handling
|
||||||
NO_SPACE_LEFT_ON_DEVICE(100),
|
NO_SPACE_LEFT_ON_DEVICE(100),
|
||||||
@@ -222,6 +223,8 @@ public class Error {
|
|||||||
return "The rendered image had the wrong resolution. This project is configured incorrectly. Switching to another project.";
|
return "The rendered image had the wrong resolution. This project is configured incorrectly. Switching to another project.";
|
||||||
case CURRENTLY_HEADLESS:
|
case CURRENTLY_HEADLESS:
|
||||||
return "Blender can not open a display to create an OpenGL context needed for EEVEE/GPencil. Will try another project in a few minutes.";
|
return "Blender can not open a display to create an OpenGL context needed for EEVEE/GPencil. Will try another project in a few minutes.";
|
||||||
|
case CANNOT_READ_FILE:
|
||||||
|
return "Blender failed to read the project files. Will try another project in a few minutes.";
|
||||||
default:
|
default:
|
||||||
return in.toString();
|
return in.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -948,6 +948,13 @@ import java.util.regex.Pattern;
|
|||||||
//17-03 07:38:47 (error) Job::render no picture file found (after finished render (filename_without_extension 116372253_0007)
|
//17-03 07:38:47 (error) Job::render no picture file found (after finished render (filename_without_extension 116372253_0007)
|
||||||
return Error.Type.CURRENTLY_HEADLESS;
|
return Error.Type.CURRENTLY_HEADLESS;
|
||||||
}
|
}
|
||||||
|
else if (line.contains("Error: Cannot read file")) {
|
||||||
|
//14-10 11:03:21 (debug) Blender 3.1.0 (hash c77597cd0e15 built 2022-03-09 00:44:13)
|
||||||
|
//14-10 11:03:21 (debug) Error: Cannot read file 'C:\SheepIT\sheepit\ef925644a319c5ad604ebc077769bcb8\Passeio Virtual FINAL.blend': No such file or directory
|
||||||
|
//14-10 11:03:21 (debug) Blender quit
|
||||||
|
return Error.Type.CANNOT_READ_FILE;
|
||||||
|
}
|
||||||
|
|
||||||
return Type.OK;
|
return Type.OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user