mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-11-04 18:07:27 +03:00 
			
		
		
		
	Merge pull request #240 from sapegin/patch-3
Show error message, not just a stack trace
This commit is contained in:
		
						commit
						b030896048
					
				| 
						 | 
					@ -77,7 +77,7 @@ function computeNextEntry(reducer, action, state, error) {
 | 
				
			||||||
      // In Chrome, rethrowing provides better source map support
 | 
					      // In Chrome, rethrowing provides better source map support
 | 
				
			||||||
      setTimeout(() => { throw err; });
 | 
					      setTimeout(() => { throw err; });
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      console.error(err.stack || err);
 | 
					      console.error(err);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -169,7 +169,7 @@ describe('instrument', () => {
 | 
				
			||||||
    expect(computedStates[3].error).toMatch(
 | 
					    expect(computedStates[3].error).toMatch(
 | 
				
			||||||
      /Interrupted by an error up the chain/
 | 
					      /Interrupted by an error up the chain/
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
    expect(spy.calls[0].arguments[0]).toMatch(
 | 
					    expect(spy.calls[0].arguments[0].toString()).toMatch(
 | 
				
			||||||
      /ReferenceError/
 | 
					      /ReferenceError/
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user