Let the user know the arity of a missing method in the error message.

This commit is contained in:
Gavin Schulz
2015-01-04 14:42:11 -05:00
parent c25cfca18b
commit 7f90485cff
10 changed files with 64 additions and 16 deletions
+2 -2
View File
@@ -3,5 +3,5 @@ var fiber = new Fiber {
}
IO.print(fiber.error) // expect: null
IO.print(fiber.try) // expect: String does not implement method 'unknown'.
IO.print(fiber.error) // expect: String does not implement method 'unknown'.
IO.print(fiber.try) // expect: String does not implement method 'unknown' with 0 arguments.
IO.print(fiber.error) // expect: String does not implement method 'unknown' with 0 arguments.
+1 -1
View File
@@ -6,5 +6,5 @@ var fiber = new Fiber {
IO.print(fiber.try)
// expect: before
// expect: Bool does not implement method 'unknownMethod'.
// expect: Bool does not implement method 'unknownMethod' with 0 arguments.
IO.print("after try") // expect: after try