Skip to content

Commit db392f9

Browse files
committed
Add generic error message for flycheck
This is to catch situations where the is no file provided by the solc compiler regarding the error. For example in the following: ``` Error: Documented parameter "_longitude" not found in the parameter list of the function. sikorka_basic_interface.sol:47:45: Error: Identifier not found or not unique. modifier need_pop(uint _latitude, uint, _longitude, string _answer) { ```
1 parent e8bc634 commit db392f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solidity-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ Highlight the 1st result."
437437
"A Solidity syntax checker using the solc compiler"
438438
:command ("/usr/bin/solc" source-inplace)
439439
:error-patterns
440-
((error line-start (file-name) ":" line ":" column ":" " Error: " (message)))
440+
((error line-start (file-name) ":" line ":" column ":" " Error: " (message))
441+
(warning line-start "Error: " (message)))
441442
:modes solidity-mode
442443
:predicate (lambda () (eq major-mode 'solidity-mode)))
443444
(add-to-list 'flycheck-checkers 'solidity-checker)

0 commit comments

Comments
 (0)