Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ast_mapper should display a more helpful message on version mismatch #6413

Closed
vicuna opened this issue May 12, 2014 · 1 comment
Closed

Ast_mapper should display a more helpful message on version mismatch #6413

vicuna opened this issue May 12, 2014 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented May 12, 2014

Original bug ID: 6413
Reporter: @whitequark
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:26:57Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.02.0+dev
Category: standard library

Bug description

Currently, an extension will fail with the following error:

Failure("Ast_mapper: unknown magic number")

It is clear to those familiar with object file format, but not mere users. It would be way better to phrase it like

Failure("Ast_mapper: OCaml version mismatch or malformed input")
@vicuna
Copy link
Author

vicuna commented May 12, 2014

Comment author: @whitequark

#59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants