From 9fc8b0032c60f6df0e0865606afd6d0ca608e453 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 19 Apr 2020 18:55:51 +0200 Subject: [PATCH] Error handling --- examples/gltfscene/gltfscene.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/gltfscene/gltfscene.cpp b/examples/gltfscene/gltfscene.cpp index 93bff2fe..eae17dfb 100644 --- a/examples/gltfscene/gltfscene.cpp +++ b/examples/gltfscene/gltfscene.cpp @@ -520,10 +520,7 @@ public: } } else { - std::cerr << "Could not load gltf file: " << error << std::endl; -#ifdef VK_USE_PLATFORM_ANDROID_KHR - LOGE("Could not load glTF file from %s: %s", filename.c_str(), error.c_str()); -#endif + vks::tools::exitFatal("Could not open the glTF file\n\nThe file is part of the additional asset pack.\n\nRun \"download_assets.py\" in the repository root to download the latest version.", -1); return; }