Throwing error() does not display error message.
See original GitHub issueGiven this file:
func()
if length(arguments) > 1
error('foo bar')
font-size arguments
h1
position absolute
func 5px 9px
The error is thrown, but the message “foo bar” is not displayed in the console.
The command I’m running to compile this file is $ stylus < test.styl > test.css
The console only displays:
/usr/local/lib/node_modules/stylus/bin/stylus:593
if (err) throw err;
Side note:
When using $ stylus --watch
, the error message is displayed.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
throw does not show error msg c++ [closed] - Stack Overflow
I'm working on an assignment and for some reason the throw invalid_argument will not display the message "Account balance is too low". I...
Read more >Throw error and display message - MATLAB error - MathWorks
This MATLAB function throws an error and displays an error message.
Read more >Error Messages not displaying - UiPath Community Forum
Hello! Help me please. Error messages no longer appear in “DEBUG” mode after updating the UiPath. How to configure error messages display?
Read more >Write-Error (Microsoft.PowerShell.Utility) - Microsoft Learn
The Write-Error cmdlet declares a non-terminating error. By default, errors are sent in the error stream to the host program to be displayed, ......
Read more >A Definitive Guide to Handling Errors in JavaScript - Kinsta
Getting tripped up by errors in your JavaScript? We'll show you how to tame those errors so you can get back to developing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am using
stylus
from the dev branch. I get the same kind ofthrow err;
message as before. Fixing line 661 fromthrow err;
tothrow new Error(err)
per @Panya’s suggestion makes stylus show proper errors. Are you guys sure this is fixed?Yea, I basically have the same problem as @iivmok with line 661 and 592. It’s fixed when I added @Panya 's code (throw new Error(err); instead of throw err;).