Browse Source

Merge pull request #201 from atanasovdaniel/err_on_badcall

Set error message if called object is not callable
Alberto Demichelis 5 years ago
parent
commit
19442ab8a7
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