Fix error message for responseError (#1077)

This commit is contained in:
Derek Kniffin 2022-10-18 11:06:48 -04:00 committed by GitHub
parent d25c497a0f
commit 919079c7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3180,7 +3180,7 @@ return (function () {
}
}
if (isError) {
triggerErrorEvent(elt, 'htmx:responseError', mergeObjects({error: "Response Status Error Code " + xhr.status + " from " + responseInfo.pathInfo.path}, responseInfo));
triggerErrorEvent(elt, 'htmx:responseError', mergeObjects({error: "Response Status Error Code " + xhr.status + " from " + responseInfo.pathInfo.requestPath}, responseInfo));
}
}