System.err.println("Error recording path: ${e.message}")