Skip to content

Commit

Permalink
Fix BusyWorker: scala.MatchError bug #7
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Jan 29, 2020
1 parent e777f7b commit a300e54
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2019, ScalaFX Project
* Copyright (c) 2011-2020, ScalaFX Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -460,6 +460,9 @@ class BusyWorker private(val title: String,
case NonFatal(t) =>
val message = s"Unexpected error while performing a UI task: '$name'. " // + Option(t.getMessage).getOrElse("")
showException(title, message, t)
case t =>
// Propagate fatal errors
throw t
}
resetProgress()
}
Expand Down

0 comments on commit a300e54

Please sign in to comment.