Verified Commit b76b5367 authored by Benjamin Canou's avatar Benjamin Canou Committed by Grégoire Henry

Alpha: use underscores in error ids

parent 67cca7dd
Pipeline #26395404 failed with stages
in 12 minutes and 20 seconds
......@@ -554,8 +554,8 @@ let prim_encoding =
let () =
register_error_kind
`Permanent
~id:"unknownPrimitiveNameTypeError"
~title: "Unknown primitive name (typechecking error)"
~id:"michelson_v1.unknown_primitive_name"
~title: "Unknown primitive name"
~description:
"In a script or data expression, a primitive was unknown."
~pp:(fun ppf n -> Format.fprintf ppf "Unknown primitive %s." n)
......@@ -567,8 +567,8 @@ let () =
Unknown_primitive_name got) ;
register_error_kind
`Permanent
~id:"invalidPrimitiveNameCaseTypeError"
~title: "Invalid primitive name case (typechecking error)"
~id:"michelson_v1.invalid_primitive_name_case"
~title: "Invalid primitive name case"
~description:
"In a script or data expression, a primitive name is \
neither uppercase, lowercase or capitalized."
......@@ -581,8 +581,8 @@ let () =
Invalid_case name) ;
register_error_kind
`Permanent
~id:"invalidPrimitiveNameTypeErro"
~title: "Invalid primitive name (typechecking error)"
~id:"michelson_v1.invalid_primitive_name"
~title: "Invalid primitive name"
~description:
"In a script or data expression, a primitive name is \
unknown or has a wrong case."
......
......@@ -55,8 +55,8 @@ let () =
(* Reject *)
register_error_kind
`Temporary
~id:"scriptRejectedRuntimeError"
~title: "Script failed (runtime script error)"
~id:"michelson_v1.script_rejected"
~title: "Script failed"
~description: "A FAILWITH instruction was reached"
(obj3
(req "location" Script.location_encoding)
......@@ -67,7 +67,7 @@ let () =
(* Overflow *)
register_error_kind
`Temporary
~id:"scriptOverflowRuntimeError"
~id:"michelson_v1.script_overflow"
~title: "Script failed (overflow error)"
~description: "A FAIL instruction was reached due to the detection of an overflow"
(obj2
......@@ -78,7 +78,7 @@ let () =
(* Runtime contract error *)
register_error_kind
`Temporary
~id:"scriptRuntimeError"
~id:"michelson_v1.runtime_error"
~title: "Script runtime error"
~description: "Toplevel error for all runtime script errors"
(obj2
......@@ -93,7 +93,7 @@ let () =
(* Bad contract parameter *)
register_error_kind
`Permanent
~id:"badContractParameter"
~id:"michelson_v1.bad_contract_parameter"
~title:"Contract supplied an invalid parameter"
~description:"Either no parameter was supplied to a contract with \
a non-unit parameter type, a non-unit parameter was \
......@@ -105,7 +105,7 @@ let () =
(* Cannot serialize log *)
register_error_kind
`Temporary
~id:"cannotSerializeLog"
~id:"michelson_v1.cannot_serialize_log"
~title:"Not enough gas to serialize execution trace"
~description:"Execution trace with stacks was to big to be serialized with \
the provided gas"
......@@ -115,7 +115,7 @@ let () =
(* Cannot serialize failure *)
register_error_kind
`Temporary
~id:"cannotSerializeFailure"
~id:"michelson_v1.cannot_serialize_failure"
~title:"Not enough gas to serialize argument of FAILWITH"
~description:"Argument of FAILWITH was too big to be serialized with \
the provided gas"
......@@ -125,7 +125,7 @@ let () =
(* Cannot serialize storage *)
register_error_kind
`Temporary
~id:"cannotSerializeStorage"
~id:"michelson_v1.cannot_serialize_storage"
~title:"Not enough gas to serialize execution storage"
~description:"The returned storage was too big to be serialized with \
the provided gas"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment