@@ -31,25 +31,25 @@ func _export(res_source_file_path: String, options: Dictionary) -> ExportResult:
3131
3232 var os_command_result : _ProjectSetting .GettingValueResult = __os_command_project_setting .get_value ()
3333 if os_command_result .error :
34- result .fail (ERR_UNCONFIGURED , "Unable to get Pencil2D Command to export spritesheet" , os_command_result )
34+ result .fail (ERR_UNCONFIGURED , "Failed to get Pencil2D Command to export spritesheet" , os_command_result )
3535 return result
3636
3737 var os_command_arguments_result : _ProjectSetting .GettingValueResult = __os_command_arguments_project_setting .get_value ()
3838 if os_command_arguments_result .error :
39- result .fail (ERR_UNCONFIGURED , "Unable to get Pencil2D Command Arguments to export spritesheet" , os_command_arguments_result )
39+ result .fail (ERR_UNCONFIGURED , "Failed to get Pencil2D Command Arguments to export spritesheet" , os_command_arguments_result )
4040 return result
4141
4242 var temp_dir_path_result : _ProjectSetting .GettingValueResult = _Common .common_temporary_files_directory_path_project_setting .get_value ()
4343 if temp_dir_path_result .error :
44- result .fail (ERR_UNCONFIGURED , "Unable to get Temporary Files Directory Path to export spritesheet" , temp_dir_path_result )
44+ result .fail (ERR_UNCONFIGURED , "Failed to get Temporary Files Directory Path to export spritesheet" , temp_dir_path_result )
4545 return result
4646
4747 var global_source_file_path : String = ProjectSettings .globalize_path (res_source_file_path )
4848
4949 var zip_reader : ZIPReader = ZIPReader .new ()
5050 var zip_error : Error = zip_reader .open (global_source_file_path )
5151 if zip_error :
52- result .fail (zip_error , "Unable to open Pencil2D file \" %s \" as ZIP archive with error: %s (%s )" % [res_source_file_path , zip_error , error_string (zip_error )])
52+ result .fail (zip_error , "Failed to open Pencil2D file \" %s \" as ZIP archive with error: %s (%s )" % [res_source_file_path , zip_error , error_string (zip_error )])
5353 return result
5454 var buffer : PackedByteArray = zip_reader .read_file ("main.xml" )
5555 var main_xml_root : _XML .XMLNodeRoot = _XML .parse_buffer (buffer )
@@ -74,7 +74,7 @@ func _export(res_source_file_path: String, options: Dictionary) -> ExportResult:
7474 AnimationOptions .FramesCount | AnimationOptions .Direction | AnimationOptions .RepeatCount ,
7575 animation_first_frame_index )
7676 if animation_params_parsing_result .error :
77- result .fail (ERR_CANT_RESOLVE , "Unable to parse animation parameters" , animation_params_parsing_result )
77+ result .fail (ERR_CANT_RESOLVE , "Failed to parse animation parameters" , animation_params_parsing_result )
7878 return result
7979 if unique_animations_names .has (animation_params_parsing_result .name ):
8080 result .fail (ERR_INVALID_DATA , "Duplicated animation name \" %s \" at index: %s " %
@@ -97,7 +97,7 @@ func _export(res_source_file_path: String, options: Dictionary) -> ExportResult:
9797 if not DirAccess .dir_exists_absolute (global_temp_dir_path ):
9898 err = DirAccess .make_dir_recursive_absolute (global_temp_dir_path )
9999 if err :
100- result .fail (ERR_UNCONFIGURED , "Unable to create directory for temporary files \" %s \" with error %s \" %s \" " %
100+ result .fail (ERR_UNCONFIGURED , "Failed to create directory for temporary files \" %s \" with error %s \" %s \" " %
101101 [global_temp_dir_path , err , error_string (err )])
102102 var png_base_name : String = "temp"
103103 var global_temp_png_path : String = temp_dir_path_result .value .path_join ("%s .png" % png_base_name )
@@ -129,7 +129,7 @@ func _export(res_source_file_path: String, options: Dictionary) -> ExportResult:
129129 .path_join ("%s%04d .png" % [png_base_name , image_idx + 1 ])
130130 frames_images .push_back (Image .load_from_file (global_frame_png_path ))
131131 var remove_frame_file_error : Error = DirAccess .remove_absolute (global_frame_png_path )
132- if remove_frame_file_error : push_error ("Unable to remove temp file: \" %s \" with error: %s %s , continuing..." %
132+ if remove_frame_file_error : push_error ("Failed to remove temp file: \" %s \" with error: %s %s , continuing..." %
133133 [global_frame_png_path , remove_frame_file_error , error_string (remove_frame_file_error )])
134134
135135 var sprite_sheet_builder : _SpriteSheetBuilderBase = _create_sprite_sheet_builder (options )
@@ -218,7 +218,7 @@ class CustomImageFormatLoaderExtension:
218218 if not DirAccess .dir_exists_absolute (global_temp_dir_path ):
219219 err = DirAccess .make_dir_recursive_absolute (global_temp_dir_path )
220220 if err :
221- push_error ("Unable to create directory for temporary files \" %s \" with error %s \" %s \" " %
221+ push_error ("Failed to create directory for temporary files \" %s \" with error %s \" %s \" " %
222222 [global_temp_dir_path , err , error_string (err )])
223223 return ERR_QUERY_FAILED
224224 var png_base_name : String = "img"
0 commit comments