From 5500ad5b86eb2ee614beaa6474b849b73b337320 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 25 May 2012 06:22:05 -0600 Subject: [PATCH] new error message convention Add `raise-argument-error', `raise-result-error', `raise-arguments-error', and `raise-range-error'. The old convention was designed for reporting on a single (sometimes very long line). The new convention is : : ... If is long or itself spans multiple lines, then it may also use the form : where each line of is indented by 3 spaces. Backtrace information is shown as a multi-line "context" field. original commit: 9e7548de615610a5be2adb33c4cf6ee10f9e7589 --- collects/tests/racket/contract-mzlib-test.rktl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/tests/racket/contract-mzlib-test.rktl b/collects/tests/racket/contract-mzlib-test.rktl index 76c49f9..597aeff 100644 --- a/collects/tests/racket/contract-mzlib-test.rktl +++ b/collects/tests/racket/contract-mzlib-test.rktl @@ -2730,7 +2730,7 @@ of the contract library does not change over time. m 1 2)) - "procedure m method: expects 1 argument, given 2: 1 2") + "application: wrong number of arguments\n procedure: m method\n expected number of arguments: 1\n given number of arguments: 2\n arguments:\n 1\n 2") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;