Skip to content

Instantly share code, notes, and snippets.

@xbee
Created February 26, 2014 06:55
Show Gist options
  • Save xbee/9224894 to your computer and use it in GitHub Desktop.
Save xbee/9224894 to your computer and use it in GitHub Desktop.
erlang 常见错误提示
7> math3:area({rect, 2, 3}).
** exception error: no function clause matching math3:area({rect,2,3}) (math3.erl, line 4)
8> math3:area({rectangle, 2, 3}).
6
9> c(math3).
math3.beam: Module name 'math2' does not match file name 'math3'
error
11> A =5.
** exception error: no match of right hand side value 5
20> math3:test(0).
** exception error: no true branch found when evaluating an if expression
in function math3:test/1 (math3.erl, line 14)
21> c(math3).
math3.erl:17: syntax error before: '<='
math3.erl:2: function test/1 undefined
error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment