Skip to content

Commit c239bdc

Browse files
Make extra message a full sentence
1 parent accfa1a commit c239bdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/Splicer.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ object Splicer {
140140
try classLoader.loadClass(name.toString)
141141
catch {
142142
case _: ClassNotFoundException =>
143-
val msg = s"Could not find macro class $name in classpath $extraMsg"
143+
val msg = s"Could not find macro class $name in classpath$extraMsg"
144144
throw new StopInterpretation(msg, pos)
145145
}
146146
}
@@ -149,12 +149,12 @@ object Splicer {
149149
try clazz.getMethod(name.toString, paramClasses: _*)
150150
catch {
151151
case _: NoSuchMethodException =>
152-
val msg = s"Could not find inline macro method ${clazz.getCanonicalName}.$name with parameters $paramClasses $extraMsg"
152+
val msg = s"Could not find inline macro method ${clazz.getCanonicalName}.$name with parameters $paramClasses$extraMsg"
153153
throw new StopInterpretation(msg, pos)
154154
}
155155
}
156156

157-
private def extraMsg = "(the most common reason for that is that you cannot use inline macro implementations in the same compilation run that defines them)"
157+
private def extraMsg = ". The most common reason for that is that you cannot use inline macro implementations in the same compilation run that defines them"
158158

159159
private def stopIfRuntimeException[T](thunk: => T): T = {
160160
try thunk

0 commit comments

Comments
 (0)