refactor: use getCanonicalPath instead of toRealPath
This commit is contained in:
@@ -45,7 +45,7 @@ def formatError(error: Error)(using errorContent: String): String = {
|
||||
* File of the error
|
||||
*/
|
||||
def formatFile(file: File): Unit = {
|
||||
sb.append(s"File: ${file.toPath.toRealPath()}\n")
|
||||
sb.append(s"File: ${file.getCanonicalPath}\n")
|
||||
}
|
||||
|
||||
/** Function to format the position of an error
|
||||
|
||||
Reference in New Issue
Block a user