Alpha: use underscores in error ids
This commit is contained in:
parent
67cca7dd93
commit
b76b5367bb
@ -554,8 +554,8 @@ let prim_encoding =
|
|||||||
let () =
|
let () =
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unknownPrimitiveNameTypeError"
|
~id:"michelson_v1.unknown_primitive_name"
|
||||||
~title: "Unknown primitive name (typechecking error)"
|
~title: "Unknown primitive name"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, a primitive was unknown."
|
"In a script or data expression, a primitive was unknown."
|
||||||
~pp:(fun ppf n -> Format.fprintf ppf "Unknown primitive %s." n)
|
~pp:(fun ppf n -> Format.fprintf ppf "Unknown primitive %s." n)
|
||||||
@ -567,8 +567,8 @@ let () =
|
|||||||
Unknown_primitive_name got) ;
|
Unknown_primitive_name got) ;
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidPrimitiveNameCaseTypeError"
|
~id:"michelson_v1.invalid_primitive_name_case"
|
||||||
~title: "Invalid primitive name case (typechecking error)"
|
~title: "Invalid primitive name case"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, a primitive name is \
|
"In a script or data expression, a primitive name is \
|
||||||
neither uppercase, lowercase or capitalized."
|
neither uppercase, lowercase or capitalized."
|
||||||
@ -581,8 +581,8 @@ let () =
|
|||||||
Invalid_case name) ;
|
Invalid_case name) ;
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidPrimitiveNameTypeErro"
|
~id:"michelson_v1.invalid_primitive_name"
|
||||||
~title: "Invalid primitive name (typechecking error)"
|
~title: "Invalid primitive name"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, a primitive name is \
|
"In a script or data expression, a primitive name is \
|
||||||
unknown or has a wrong case."
|
unknown or has a wrong case."
|
||||||
|
@ -55,8 +55,8 @@ let () =
|
|||||||
(* Reject *)
|
(* Reject *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"scriptRejectedRuntimeError"
|
~id:"michelson_v1.script_rejected"
|
||||||
~title: "Script failed (runtime script error)"
|
~title: "Script failed"
|
||||||
~description: "A FAILWITH instruction was reached"
|
~description: "A FAILWITH instruction was reached"
|
||||||
(obj3
|
(obj3
|
||||||
(req "location" Script.location_encoding)
|
(req "location" Script.location_encoding)
|
||||||
@ -67,7 +67,7 @@ let () =
|
|||||||
(* Overflow *)
|
(* Overflow *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"scriptOverflowRuntimeError"
|
~id:"michelson_v1.script_overflow"
|
||||||
~title: "Script failed (overflow error)"
|
~title: "Script failed (overflow error)"
|
||||||
~description: "A FAIL instruction was reached due to the detection of an overflow"
|
~description: "A FAIL instruction was reached due to the detection of an overflow"
|
||||||
(obj2
|
(obj2
|
||||||
@ -78,7 +78,7 @@ let () =
|
|||||||
(* Runtime contract error *)
|
(* Runtime contract error *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"scriptRuntimeError"
|
~id:"michelson_v1.runtime_error"
|
||||||
~title: "Script runtime error"
|
~title: "Script runtime error"
|
||||||
~description: "Toplevel error for all runtime script errors"
|
~description: "Toplevel error for all runtime script errors"
|
||||||
(obj2
|
(obj2
|
||||||
@ -93,7 +93,7 @@ let () =
|
|||||||
(* Bad contract parameter *)
|
(* Bad contract parameter *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"badContractParameter"
|
~id:"michelson_v1.bad_contract_parameter"
|
||||||
~title:"Contract supplied an invalid parameter"
|
~title:"Contract supplied an invalid parameter"
|
||||||
~description:"Either no parameter was supplied to a contract with \
|
~description:"Either no parameter was supplied to a contract with \
|
||||||
a non-unit parameter type, a non-unit parameter was \
|
a non-unit parameter type, a non-unit parameter was \
|
||||||
@ -105,7 +105,7 @@ let () =
|
|||||||
(* Cannot serialize log *)
|
(* Cannot serialize log *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"cannotSerializeLog"
|
~id:"michelson_v1.cannot_serialize_log"
|
||||||
~title:"Not enough gas to serialize execution trace"
|
~title:"Not enough gas to serialize execution trace"
|
||||||
~description:"Execution trace with stacks was to big to be serialized with \
|
~description:"Execution trace with stacks was to big to be serialized with \
|
||||||
the provided gas"
|
the provided gas"
|
||||||
@ -115,7 +115,7 @@ let () =
|
|||||||
(* Cannot serialize failure *)
|
(* Cannot serialize failure *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"cannotSerializeFailure"
|
~id:"michelson_v1.cannot_serialize_failure"
|
||||||
~title:"Not enough gas to serialize argument of FAILWITH"
|
~title:"Not enough gas to serialize argument of FAILWITH"
|
||||||
~description:"Argument of FAILWITH was too big to be serialized with \
|
~description:"Argument of FAILWITH was too big to be serialized with \
|
||||||
the provided gas"
|
the provided gas"
|
||||||
@ -125,7 +125,7 @@ let () =
|
|||||||
(* Cannot serialize storage *)
|
(* Cannot serialize storage *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"cannotSerializeStorage"
|
~id:"michelson_v1.cannot_serialize_storage"
|
||||||
~title:"Not enough gas to serialize execution storage"
|
~title:"Not enough gas to serialize execution storage"
|
||||||
~description:"The returned storage was too big to be serialized with \
|
~description:"The returned storage was too big to be serialized with \
|
||||||
the provided gas"
|
the provided gas"
|
||||||
|
@ -80,8 +80,8 @@ let () =
|
|||||||
(* Invalid arity *)
|
(* Invalid arity *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidArityTypeError"
|
~id:"michelson_v1.invalid_arity"
|
||||||
~title: "Invalid arity (typechecking error)"
|
~title: "Invalid arity"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, a primitive was applied \
|
"In a script or data expression, a primitive was applied \
|
||||||
to an unsupported number of arguments."
|
to an unsupported number of arguments."
|
||||||
@ -98,7 +98,7 @@ let () =
|
|||||||
(* Missing field *)
|
(* Missing field *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"missingScriptField"
|
~id:"michelson_v1.missing_script_field"
|
||||||
~title:"Script is missing a field (parse error)"
|
~title:"Script is missing a field (parse error)"
|
||||||
~description:
|
~description:
|
||||||
"When parsing script, a field was expected, but not provided"
|
"When parsing script, a field was expected, but not provided"
|
||||||
@ -108,8 +108,8 @@ let () =
|
|||||||
(* Invalid primitive *)
|
(* Invalid primitive *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidPrimitiveTypeError"
|
~id:"michelson_v1.invalid_primitive"
|
||||||
~title: "Invalid primitive (typechecking error)"
|
~title: "Invalid primitive"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, a primitive was unknown."
|
"In a script or data expression, a primitive was unknown."
|
||||||
(located (obj2
|
(located (obj2
|
||||||
@ -123,8 +123,8 @@ let () =
|
|||||||
(* Invalid kind *)
|
(* Invalid kind *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidExpressionKindTypeError"
|
~id:"michelson_v1.invalid_expression_kind"
|
||||||
~title: "Invalid expression kind (typechecking error)"
|
~title: "Invalid expression kind"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, an expression was of the wrong kind \
|
"In a script or data expression, an expression was of the wrong kind \
|
||||||
(for instance a string where only a primitive applications can appear)."
|
(for instance a string where only a primitive applications can appear)."
|
||||||
@ -139,8 +139,8 @@ let () =
|
|||||||
(* Invalid namespace *)
|
(* Invalid namespace *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidPrimitiveNamespaceTypeError"
|
~id:"michelson_v1.invalid_primitive_namespace"
|
||||||
~title: "Invalid primitive namespace (typechecking error)"
|
~title: "Invalid primitive namespace"
|
||||||
~description:
|
~description:
|
||||||
"In a script or data expression, a primitive was of the wrong namespace."
|
"In a script or data expression, a primitive was of the wrong namespace."
|
||||||
(located (obj3
|
(located (obj3
|
||||||
@ -155,7 +155,7 @@ let () =
|
|||||||
(* Duplicate field *)
|
(* Duplicate field *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"duplicateScriptField"
|
~id:"michelson_v1.duplicate_script_field"
|
||||||
~title: "Script has a duplicated field (parse error)"
|
~title: "Script has a duplicated field (parse error)"
|
||||||
~description:
|
~description:
|
||||||
"When parsing script, a field was found more than once"
|
"When parsing script, a field was found more than once"
|
||||||
@ -167,7 +167,7 @@ let () =
|
|||||||
(* Unexpected big_map *)
|
(* Unexpected big_map *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unexpectedBigMap"
|
~id:"michelson_v1.unexpected_bigmap"
|
||||||
~title: "Big map in unauthorized position (type error)"
|
~title: "Big map in unauthorized position (type error)"
|
||||||
~description:
|
~description:
|
||||||
"When parsing script, a big_map type was found somewhere else \
|
"When parsing script, a big_map type was found somewhere else \
|
||||||
@ -179,7 +179,7 @@ let () =
|
|||||||
(* Unexpected operation *)
|
(* Unexpected operation *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unexpectedOperation"
|
~id:"michelson_v1.unexpected_operation"
|
||||||
~title: "Big map in unauthorized position (type error)"
|
~title: "Big map in unauthorized position (type error)"
|
||||||
~description:
|
~description:
|
||||||
"When parsing script, a operation type was found \
|
"When parsing script, a operation type was found \
|
||||||
@ -192,7 +192,7 @@ let () =
|
|||||||
(* Unordered map keys *)
|
(* Unordered map keys *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unorderedMapLiteral"
|
~id:"michelson_v1.unordered_map_literal"
|
||||||
~title:"Invalid map key order"
|
~title:"Invalid map key order"
|
||||||
~description:"Map keys must be in strictly increasing order"
|
~description:"Map keys must be in strictly increasing order"
|
||||||
(obj2
|
(obj2
|
||||||
@ -205,7 +205,7 @@ let () =
|
|||||||
(* Duplicate map keys *)
|
(* Duplicate map keys *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"duplicateMapKeys"
|
~id:"michelson_v1.duplicate_map_keys"
|
||||||
~title:"Duplicate map keys"
|
~title:"Duplicate map keys"
|
||||||
~description:"Map literals cannot contain duplicated keys"
|
~description:"Map literals cannot contain duplicated keys"
|
||||||
(obj2
|
(obj2
|
||||||
@ -218,7 +218,7 @@ let () =
|
|||||||
(* Unordered set values *)
|
(* Unordered set values *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unorderedSetLiteral"
|
~id:"michelson_v1.unordered_set_literal"
|
||||||
~title:"Invalid set value order"
|
~title:"Invalid set value order"
|
||||||
~description:"Set values must be in strictly increasing order"
|
~description:"Set values must be in strictly increasing order"
|
||||||
(obj2
|
(obj2
|
||||||
@ -231,7 +231,7 @@ let () =
|
|||||||
(* Duplicate set values *)
|
(* Duplicate set values *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"duplicateSetValuesInLiteral"
|
~id:"michelson_v1.duplicate_set_values_in_literal"
|
||||||
~title:"Sets literals cannot contain duplicate elements"
|
~title:"Sets literals cannot contain duplicate elements"
|
||||||
~description:"Set literals cannot contain duplicate elements, \
|
~description:"Set literals cannot contain duplicate elements, \
|
||||||
but a duplicae was found while parsing."
|
but a duplicae was found while parsing."
|
||||||
@ -246,8 +246,8 @@ let () =
|
|||||||
(* Fail not in tail position *)
|
(* Fail not in tail position *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"failNotInTailPositionTypeError"
|
~id:"michelson_v1.fail_not_in_tail_position"
|
||||||
~title: "FAIL not in tail position (typechecking error)"
|
~title: "FAIL not in tail position"
|
||||||
~description:
|
~description:
|
||||||
"There is non trivial garbage code after a FAIL instruction."
|
"There is non trivial garbage code after a FAIL instruction."
|
||||||
(located empty)
|
(located empty)
|
||||||
@ -259,8 +259,8 @@ let () =
|
|||||||
(* Undefined binary operation *)
|
(* Undefined binary operation *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"undefinedBinopTypeError"
|
~id:"michelson_v1.undefined_binop"
|
||||||
~title: "Undefined binop (typechecking error)"
|
~title: "Undefined binop"
|
||||||
~description:
|
~description:
|
||||||
"A binary operation is called on operands of types \
|
"A binary operation is called on operands of types \
|
||||||
over which it is not defined."
|
over which it is not defined."
|
||||||
@ -277,8 +277,8 @@ let () =
|
|||||||
(* Undefined unary operation *)
|
(* Undefined unary operation *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"undefinedUnopTypeError"
|
~id:"michelson_v1.undefined_unop"
|
||||||
~title: "Undefined unop (typechecking error)"
|
~title: "Undefined unop"
|
||||||
~description:
|
~description:
|
||||||
"A unary operation is called on an operand of type \
|
"A unary operation is called on an operand of type \
|
||||||
over which it is not defined."
|
over which it is not defined."
|
||||||
@ -294,8 +294,8 @@ let () =
|
|||||||
(* Bad return *)
|
(* Bad return *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"badReturnTypeError"
|
~id:"michelson_v1.bad_return"
|
||||||
~title: "Bad return (typechecking error)"
|
~title: "Bad return"
|
||||||
~description:
|
~description:
|
||||||
"Unexpected stack at the end of a lambda or script."
|
"Unexpected stack at the end of a lambda or script."
|
||||||
(located (obj2
|
(located (obj2
|
||||||
@ -309,8 +309,8 @@ let () =
|
|||||||
(* Bad stack *)
|
(* Bad stack *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"badStackTypeError"
|
~id:"michelson_v1.bad_stack"
|
||||||
~title: "Bad stack (typechecking error)"
|
~title: "Bad stack"
|
||||||
~description:
|
~description:
|
||||||
"The stack has an unexpected length or contents."
|
"The stack has an unexpected length or contents."
|
||||||
(located (obj3
|
(located (obj3
|
||||||
@ -325,7 +325,7 @@ let () =
|
|||||||
(* Inconsistent annotations *)
|
(* Inconsistent annotations *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"inconsistentAnnotations"
|
~id:"michelson_v1.inconsistent_annotations"
|
||||||
~title:"Annotations inconsistent between branches"
|
~title:"Annotations inconsistent between branches"
|
||||||
~description:"The annotations on two types could not be merged"
|
~description:"The annotations on two types could not be merged"
|
||||||
(obj2
|
(obj2
|
||||||
@ -337,7 +337,7 @@ let () =
|
|||||||
(* Inconsistent field annotations *)
|
(* Inconsistent field annotations *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"inconsistentFieldAnnotations"
|
~id:"michelson_v1.inconsistent_field_annotations"
|
||||||
~title:"Annotations for field accesses is inconsistent"
|
~title:"Annotations for field accesses is inconsistent"
|
||||||
~description:"The specified field does not match the field annotation in the type"
|
~description:"The specified field does not match the field annotation in the type"
|
||||||
(obj2
|
(obj2
|
||||||
@ -349,7 +349,7 @@ let () =
|
|||||||
(* Inconsistent type annotations *)
|
(* Inconsistent type annotations *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"inconsistentTypeAnnotations"
|
~id:"michelson_v1.inconsistent_type_annotations"
|
||||||
~title:"Types contain inconsistent annotations"
|
~title:"Types contain inconsistent annotations"
|
||||||
~description:"The two types contain annotations that do not match"
|
~description:"The two types contain annotations that do not match"
|
||||||
(located (obj2
|
(located (obj2
|
||||||
@ -362,7 +362,7 @@ let () =
|
|||||||
(* Unexpected annotation *)
|
(* Unexpected annotation *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unexpectedAnnotation"
|
~id:"michelson_v1.unexpected_annotation"
|
||||||
~title:"An annotation was encountered where no annotation is expected"
|
~title:"An annotation was encountered where no annotation is expected"
|
||||||
~description:"A node in the syntax tree was impropperly annotated"
|
~description:"A node in the syntax tree was impropperly annotated"
|
||||||
(located empty)
|
(located empty)
|
||||||
@ -372,7 +372,7 @@ let () =
|
|||||||
(* Ungrouped annotations *)
|
(* Ungrouped annotations *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"ungroupedAnnotations"
|
~id:"michelson_v1.ungrouped_annotations"
|
||||||
~title:"Annotations of the same kind were found spread apart"
|
~title:"Annotations of the same kind were found spread apart"
|
||||||
~description:"Annotations of the same kind must be grouped"
|
~description:"Annotations of the same kind must be grouped"
|
||||||
(located empty)
|
(located empty)
|
||||||
@ -382,8 +382,8 @@ let () =
|
|||||||
(* Unmatched branches *)
|
(* Unmatched branches *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"unmatchedBranchesTypeError"
|
~id:"michelson_v1.unmatched_branches"
|
||||||
~title: "Unmatched branches (typechecking error)"
|
~title: "Unmatched branches"
|
||||||
~description:
|
~description:
|
||||||
"At the join point at the end of two code branches \
|
"At the join point at the end of two code branches \
|
||||||
the stacks have inconsistent lengths or contents."
|
the stacks have inconsistent lengths or contents."
|
||||||
@ -399,8 +399,8 @@ let () =
|
|||||||
(* Bad stack item *)
|
(* Bad stack item *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"badStackItemTypeError"
|
~id:"michelson_v1.bad_stack_item"
|
||||||
~title: "Bad stack item (typechecking error)"
|
~title: "Bad stack item"
|
||||||
~description:
|
~description:
|
||||||
"The type of a stack item is unexpected \
|
"The type of a stack item is unexpected \
|
||||||
(this error is always accompanied by a more precise one)."
|
(this error is always accompanied by a more precise one)."
|
||||||
@ -413,8 +413,8 @@ let () =
|
|||||||
(* SELF in lambda *)
|
(* SELF in lambda *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"selfInLambda"
|
~id:"michelson_v1.self_in_lambda"
|
||||||
~title: "SELF instruction in lambda (typechecking error)"
|
~title: "SELF instruction in lambda"
|
||||||
~description:
|
~description:
|
||||||
"A SELF instruction was encountered in a lambda expression."
|
"A SELF instruction was encountered in a lambda expression."
|
||||||
(located empty)
|
(located empty)
|
||||||
@ -426,8 +426,8 @@ let () =
|
|||||||
(* Bad stack length *)
|
(* Bad stack length *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"inconsistentStackLengthsTypeError"
|
~id:"michelson_v1.inconsistent_stack_lengths"
|
||||||
~title: "Inconsistent stack lengths (typechecking error)"
|
~title: "Inconsistent stack lengths"
|
||||||
~description:
|
~description:
|
||||||
"A stack was of an unexpected length \
|
"A stack was of an unexpected length \
|
||||||
(this error is always in the context of a located error)."
|
(this error is always in the context of a located error)."
|
||||||
@ -441,8 +441,8 @@ let () =
|
|||||||
(* Invalid constant *)
|
(* Invalid constant *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidConstantTypeError"
|
~id:"michelson_v1.invalid_constant"
|
||||||
~title: "Invalid constant (typechecking error)"
|
~title: "Invalid constant"
|
||||||
~description:
|
~description:
|
||||||
"A data expression was invalid for its expected type."
|
"A data expression was invalid for its expected type."
|
||||||
(located (obj2
|
(located (obj2
|
||||||
@ -457,8 +457,8 @@ let () =
|
|||||||
(* Invalid contract *)
|
(* Invalid contract *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidContractTypeError"
|
~id:"michelson_v1.invalid_contract"
|
||||||
~title: "Invalid contract (typechecking error)"
|
~title: "Invalid contract"
|
||||||
~description:
|
~description:
|
||||||
"A script or data expression references a contract that does not \
|
"A script or data expression references a contract that does not \
|
||||||
exist or assumes a wrong type for an existing contract."
|
exist or assumes a wrong type for an existing contract."
|
||||||
@ -472,8 +472,8 @@ let () =
|
|||||||
(* Comparable type expected *)
|
(* Comparable type expected *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"comparableTypeExpectedTypeError"
|
~id:"michelson_v1.comparable_type_expected"
|
||||||
~title: "Comparable type expected (typechecking error)"
|
~title: "Comparable type expected"
|
||||||
~description:
|
~description:
|
||||||
"A non comparable type was used in a place where \
|
"A non comparable type was used in a place where \
|
||||||
only comparable types are accepted."
|
only comparable types are accepted."
|
||||||
@ -486,8 +486,8 @@ let () =
|
|||||||
(* Inconsistent types *)
|
(* Inconsistent types *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"InconsistentTypesTypeError"
|
~id:"michelson_v1.inconsistent_types"
|
||||||
~title: "Inconsistent types (typechecking error)"
|
~title: "Inconsistent types"
|
||||||
~description:
|
~description:
|
||||||
"This is the basic type clash error, \
|
"This is the basic type clash error, \
|
||||||
that appears in several places where the equality of \
|
that appears in several places where the equality of \
|
||||||
@ -504,7 +504,7 @@ let () =
|
|||||||
(* Invalid map body *)
|
(* Invalid map body *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidMapBody"
|
~id:"michelson_v1.invalid_map_body"
|
||||||
~title: "Invalid map body"
|
~title: "Invalid map body"
|
||||||
~description:
|
~description:
|
||||||
"The body of a map block did not match the expected type"
|
"The body of a map block did not match the expected type"
|
||||||
@ -518,7 +518,7 @@ let () =
|
|||||||
(* Invalid map block FAIL *)
|
(* Invalid map block FAIL *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidMapBlockFail"
|
~id:"michelson_v1.invalid_map_block_fail"
|
||||||
~title:"FAIL instruction occurred as body of map block"
|
~title:"FAIL instruction occurred as body of map block"
|
||||||
~description:"FAIL cannot be the only instruction in the body. \
|
~description:"FAIL cannot be the only instruction in the body. \
|
||||||
The propper type of the return list cannot be inferred."
|
The propper type of the return list cannot be inferred."
|
||||||
@ -530,7 +530,7 @@ let () =
|
|||||||
(* Invalid ITER body *)
|
(* Invalid ITER body *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"invalidIterBody"
|
~id:"michelson_v1.invalid_iter_body"
|
||||||
~title:"ITER body returned wrong stack type"
|
~title:"ITER body returned wrong stack type"
|
||||||
~description:"The body of an ITER instruction \
|
~description:"The body of an ITER instruction \
|
||||||
must result in the same stack type as before \
|
must result in the same stack type as before \
|
||||||
@ -546,7 +546,7 @@ let () =
|
|||||||
(* Type too large *)
|
(* Type too large *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"typeTooLarge"
|
~id:"michelson_v1.type_too_large"
|
||||||
~title:"Stack item type too large"
|
~title:"Stack item type too large"
|
||||||
~description:"An instruction generated a type larger than the limit."
|
~description:"An instruction generated a type larger than the limit."
|
||||||
(obj3
|
(obj3
|
||||||
@ -561,8 +561,8 @@ let () =
|
|||||||
(* Ill typed data *)
|
(* Ill typed data *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"illTypedDataTypeError"
|
~id:"michelson_v1.ill_typed_data"
|
||||||
~title: "Ill typed data (typechecking error)"
|
~title: "Ill typed data"
|
||||||
~description:
|
~description:
|
||||||
"The toplevel error thrown when trying to typecheck \
|
"The toplevel error thrown when trying to typecheck \
|
||||||
a data expression against a given type \
|
a data expression against a given type \
|
||||||
@ -578,8 +578,8 @@ let () =
|
|||||||
(* Ill formed type *)
|
(* Ill formed type *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"illFormedTypeTypeError"
|
~id:"michelson_v1.ill_formed_type"
|
||||||
~title: "Ill formed type (typechecking error)"
|
~title: "Ill formed type"
|
||||||
~description:
|
~description:
|
||||||
"The toplevel error thrown when trying to parse a type expression \
|
"The toplevel error thrown when trying to parse a type expression \
|
||||||
(always followed by more precise errors)."
|
(always followed by more precise errors)."
|
||||||
@ -595,8 +595,8 @@ let () =
|
|||||||
(* Ill typed contract *)
|
(* Ill typed contract *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Permanent
|
`Permanent
|
||||||
~id:"illTypedContractTypeError"
|
~id:"michelson_v1.ill_typed_contract"
|
||||||
~title: "Ill typed contract (typechecking error)"
|
~title: "Ill typed contract"
|
||||||
~description:
|
~description:
|
||||||
"The toplevel error thrown when trying to typecheck \
|
"The toplevel error thrown when trying to typecheck \
|
||||||
a contract code against given input, output and storage types \
|
a contract code against given input, output and storage types \
|
||||||
@ -613,7 +613,7 @@ let () =
|
|||||||
(* Cannot serialize error *)
|
(* Cannot serialize error *)
|
||||||
register_error_kind
|
register_error_kind
|
||||||
`Temporary
|
`Temporary
|
||||||
~id:"cannotSerializeError"
|
~id:"michelson_v1.cannot_serialize_error"
|
||||||
~title:"Not enough gas to serialize error"
|
~title:"Not enough gas to serialize error"
|
||||||
~description:"The error was too big to be serialized with \
|
~description:"The error was too big to be serialized with \
|
||||||
the provided gas"
|
the provided gas"
|
||||||
|
Loading…
Reference in New Issue
Block a user