Browse Source

Raise error if called object is not callable

atanasovdaniel 6 years ago
parent
commit
62f2d4a130
1 changed files with 1 additions and 0 deletions
  1. 1 0
      squirrel/sqvm.cpp

+ 1 - 0
squirrel/sqvm.cpp

@@ -1605,6 +1605,7 @@ SQInteger prevstackbase = _stackbase;
                    }
         break;
     default:
+        Raise_Error(_SC("attempt to call '%s'"), GetTypeName(closure));
         return false;
     }
 #ifdef _DEBUG