add error messages to bulk modification

This commit is contained in:
GenevensiS
2026-01-07 02:41:57 +01:00
parent fbf2023848
commit 21ea45c9c5
3 changed files with 82 additions and 21 deletions
+2 -2
View File
@@ -695,7 +695,7 @@ ImportedImage::ImportedImage(Set* set, const String& filepath)
if (!img.IsOk()) throw ScriptError(_ERROR_1_("import not image", loadpath));
// add the file to the set (or overwrite it if pre-existing), save set
savename = normalize_internal_filename(loadpath);
savename = normalize_internal_filename(loadpath + _(".png"));
savename.Replace(":", "-");
savename.Replace("/", "-");
auto outStream = set->openOut(savename);
@@ -739,7 +739,7 @@ DownloadedImage::DownloadedImage(Set* set, const String& url)
if (!img.IsOk()) throw ScriptError(_ERROR_("web request corrupted"));
// add the file to the set (or overwrite it if pre-existing), save set
savename = normalize_internal_filename(loadpath);
savename = normalize_internal_filename(loadpath + _(".png"));
savename.Replace(":", "-");
savename.Replace("/", "-");
auto outStream = set->openOut(savename);