From b94d894c36f2c1217dc15f87ba61f5123e013e13 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Thu, 29 Mar 2018 09:46:30 +0200 Subject: [PATCH] Add stderr logging for exceptions in Rhubarb for Spine --- VERSION.md | 4 ++++ .../com/rhubarb_lip_sync/rhubarb_for_spine/AudioFileModel.kt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/VERSION.md b/VERSION.md index 7ea9d8f..dc36cac 100644 --- a/VERSION.md +++ b/VERSION.md @@ -1,5 +1,9 @@ # Version history +## Unreleased + +* Internal errors in Rhubarb Lip Sync for Spine are logged to stderr + ## Version 1.7.0 * Integration with Spine animation software diff --git a/extras/EsotericSoftwareSpine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AudioFileModel.kt b/extras/EsotericSoftwareSpine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AudioFileModel.kt index 497acc6..0a30f6a 100644 --- a/extras/EsotericSoftwareSpine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AudioFileModel.kt +++ b/extras/EsotericSoftwareSpine/src/main/kotlin/com/rhubarb_lip_sync/rhubarb_for_spine/AudioFileModel.kt @@ -162,6 +162,8 @@ class AudioFileModel( } } catch (e: InterruptedException) { } catch (e: Exception) { + e.printStackTrace(System.err); + Platform.runLater { Alert(Alert.AlertType.ERROR).apply { headerText = "Error performing lip sync for event '$eventName'."