diff options
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/internal/MissingRequirementError.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/reflect/internal/MissingRequirementError.scala b/src/compiler/scala/reflect/internal/MissingRequirementError.scala index f6be9fa8c6..fbbbcc1928 100644 --- a/src/compiler/scala/reflect/internal/MissingRequirementError.scala +++ b/src/compiler/scala/reflect/internal/MissingRequirementError.scala @@ -15,8 +15,8 @@ object MissingRequirementError { private val suffix = " not found." def signal(msg: String): Nothing = throw new MissingRequirementError(msg) def notFound(req: String): Nothing = signal(req + suffix) - def unapply(x: Throwable) = x match { - case x: MissingRequirementError => x.req + def unapply(x: Throwable): Option[String] = x match { + case x: MissingRequirementError => Some(x.req) case _ => None } } |