You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6560 Reporter:@damiendoligez Assigned to:@gasche Status: closed (set by @xavierleroy on 2016-12-07T10:37:13Z) Resolution: fixed Priority: low Severity: tweak Version: 4.02.1+dev Target version: 4.02.2+dev / +rc1 Fixed in version: 4.03.0+dev / +beta1 Category: standard library Tags: junior_job Related to:#6557 Monitored by:@hcarty
Bug description
Int64.of_string, when given an invalid argument, raises Failure "int_of_string". That should be "Int64.of_string". Same problem with Int32 and NativeInt.
I initially planned to merge this patch, but on thinking about it more I found it unsatisfying: most users only use int_of_string, and for them the new error message is arguably a regression. I thus added an extra const char *errmsg parameter to the parsing function, so that each function gets its own error message.
Original bug ID: 6560
Reporter: @damiendoligez
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:37:13Z)
Resolution: fixed
Priority: low
Severity: tweak
Version: 4.02.1+dev
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.03.0+dev / +beta1
Category: standard library
Tags: junior_job
Related to: #6557
Monitored by: @hcarty
Bug description
Int64.of_string, when given an invalid argument, raises Failure "int_of_string". That should be "Int64.of_string". Same problem with Int32 and NativeInt.
Steps to reproduce
OCaml version 4.02.1+dev0-2014-08-29
Int64.of_string "x";;
Exception: Failure "int_of_string".
File attachments
The text was updated successfully, but these errors were encountered: