Skip to content

Commit 57a047f

Browse files
KoenJanssensPDtimhall
authored andcommitted
moved errorhandling to catch error when credentials file does not exist (#404)
1 parent 5f43df9 commit 57a047f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: specs/Credentials.bas

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ Function Load() As Dictionary
3636
Dim Value As String
3737

3838
Set pCredentials = New Dictionary
39+
40+
On Error GoTo ErrorHandling
41+
3942
Open CredentialsPath For Input As #1
4043

41-
On Error GoTo ErrorHandling
4244
Do While Not VBA.EOF(1)
4345
Line Input #1, Line
4446
Line = VBA.Replace(Line, vbNewLine, "")

0 commit comments

Comments
 (0)