Merge pull request #11803 from barbudor/autoexec_berry_display_exception

fix my fix on autoexec.be
This commit is contained in:
Theo Arends 2021-04-19 21:46:26 +02:00 committed by GitHub
commit aa380e7e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -423,10 +423,15 @@ const char berry_prog[] =
const char berry_autoexec[] =
// load "autoexec.be" using import, which loads either .be or .bec file
"import string "
"try "
"load('autoexec.be') "
"except .. as e,m "
"log(\"BRY: exception in autoexec '\",e,\"':\",m) "
"if e=='io_error' && string.find(m, \"autoexec.be\")>0 "
"log(\"BRY: no autoexec.be\") "
"else "
"log(\"BRY: exception in autoexec.be: \"+e+\": \"+m) "
"end "
"end "
;
#endif // USE_BERRY