1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-27 22:48:53 +02:00

Clear vips error after fetching it

This commit is contained in:
DarthSim
2022-04-26 14:07:10 +06:00
parent faed48fbea
commit 3ae0f3abc1

View File

@@ -116,6 +116,7 @@ func Cleanup() {
}
func Error() error {
defer C.vips_error_clear()
return ierrors.NewUnexpected(C.GoString(C.vips_error_buffer()), 1)
}