From 793d2ce6dcc4f10e6b19d1e9c25b1249d21e9fb7 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 22 Aug 2020 00:51:12 +0200 Subject: [PATCH] stbi: more clear panic message --- vlib/stbi/stbi.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/stbi/stbi.v b/vlib/stbi/stbi.v index ff5fd01a02..eb19b7e452 100644 --- a/vlib/stbi/stbi.v +++ b/vlib/stbi/stbi.v @@ -38,7 +38,7 @@ pub fn load(path string) Image { flag := if ext == 'png' { C.STBI_rgb_alpha } else { 0 } res.data = C.stbi_load(path.str, &res.width, &res.height, &res.nr_channels, flag) if isnil(res.data) { - panic('stbi image failed to load') + panic('stbi image failed to load from "$path"') } return res }