Skip to content

Commit

Permalink
fix: harden potential failure when second file is also not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Sep 25, 2019
1 parent 58925c9 commit c044063
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions BBjGridExWidget.bbj
Expand Up @@ -772,12 +772,17 @@ class public BBjGridExWidget extends BBjWidget implements BBjGridExWidgetColumns
if isLocale = 0 then
close (ch)
dateJsLocalePath$ = distBase$ + "/i18n/Datejs/" + locale$ + ".js"
open (ch,err=*next)dateJsLocalePath$
FI

read record (ch,siz=5512000)script$
close (ch)
#injectScript(script$)
open (ch,err=*next)dateJsLocalePath$;isLocale=1
fi
if isLocale = 1 then
read record (ch,siz=5512000)script$
close (ch)
#injectScript(script$)
else
a=msgbox("Error loading library for locale "+locale$,0,"Error")
fi


ch=unt

if #getDebug() = 1 then
Expand Down

0 comments on commit c044063

Please sign in to comment.