Skip to content

Commit b1dbeb9

Browse files
committed
[vbzip] Impl verbose error reporting
1 parent 10f6b06 commit b1dbeb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/vbzip/cVbZip.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Public Function Init(vArgs As Variant) As Boolean
224224
QH:
225225
Exit Function
226226
EH:
227-
ConsoleError "unhandled error: " & Err.Description & vbCrLf
227+
ConsoleError "Unhandled error: " & Err.Description & vbCrLf
228228
End Function
229229

230230
Private Function pvLimitNumericOption(sOpt As String, dblDefault As Double, dblMin As Double, dblMax As Double) As Boolean
@@ -274,7 +274,7 @@ Private Sub m_oArchive_Error(ByVal FileIdx As Long, Source As String, Descriptio
274274
If LenB(m_sLastRow) <> 0 Then
275275
ConsoleError vbCrLf
276276
End If
277-
ConsoleError "Error: " & Description & vbCrLf
277+
ConsoleError "Error: " & Description & IIf(m_oOpt.Item("-v"), vbCrLf & "Call-stack: " & Source, vbNullString) & vbCrLf
278278
m_sLastRow = vbNullString
279279
If Not Cancel And Not m_oOpt.Item("-y") Then
280280
Do

0 commit comments

Comments
 (0)