Illustrator script error sometimes not defined
Posted: Mon Aug 10, 2020 7:37 am
This is my error reporting code. Sometimes i get the error: Adobe Illustrator: Error 2: error is undefined. Line: 270 -> $status = error;
I can get pass this by temporary adding var error into catch (e). But after awhile when i delete it the script starts working correctly again. Why is this happening?
I can get pass this by temporary adding var error into catch (e). But after awhile when i delete it the script starts working correctly again. Why is this happening?
Code: Select all
if($error==null)
{
try {
start();
}
catch (e) {
//var error
$error = e.description;
$status = error;
doc.close(SaveOptions.DONOTSAVECHANGES);
}
}