diff --git a/src/errorFormatter.js b/src/errorFormatter.js
index <HASH>..<HASH> 100644
--- a/src/errorFormatter.js
+++ b/src/errorFormatter.js
@@ -113,8 +113,10 @@ export default class ErrorFormatter {
     getTrimmedLine(lineData, column = 0) {
         var offset = 0;
         if (column > 40) {
+            const origLineLen = lineData.length;
             lineData = '...' + lineData.substr(column - 37);
-            offset -= 40;
+            const finalLineLen = lineData.length;
+            offset -= origLineLen - finalLineLen;
         }
         if (lineData.length > 80) {
             lineData = lineData.substr(0, 77) + '...';
Fix for error formatting having incorrect column offsets