Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling when image to small #36

Open
dills122 opened this issue Jun 3, 2019 · 0 comments
Open

Better error handling when image to small #36

dills122 opened this issue Jun 3, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@dills122
Copy link
Owner

dills122 commented Jun 3, 2019

Currently the program will error out when an image is below the threshold, but doesn't exit gracefully.

Error: Image is to small
    at Object.GetImageSnippetTmpFile (E:\GitHub\mtg-card-analyzer\src\image-processing\resize.js:78:11)
Error: Image is to small
    at Object.GetImageSnippetTmpFile (E:\GitHub\mtg-card-analyzer\src\image-processing\resize.js:78:11)
Error: Image is to small
    at Object.GetImageSnippetTmpFile (E:\GitHub\mtg-card-analyzer\src\image-processing\resize.js:78:11)
Error: Image is to small
    at Object.GetImageSnippetTmpFile (E:\GitHub\mtg-card-analyzer\src\image-processing\resize.js:78:11)
Imaged Pre-Processed: [object Object]
TypeError: Cannot read property 'cleanText' of undefined
    at SingleProcessor._processFuzzyMatches (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:93:96)
    at SingleProcessor.wrapper [as _processFuzzyMatches] (E:\GitHub\mtg-card-analyzer\node_modules\lodash\lodash.js:4935:19)
    at CreateDirectory.then.then (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:61:21)
TypeError: Cannot read property 'cleanText' of undefined
    at SingleProcessor._processFuzzyMatches (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:93:96)
    at SingleProcessor.wrapper [as _processFuzzyMatches] (E:\GitHub\mtg-card-analyzer\node_modules\lodash\lodash.js:4935:19)
    at CreateDirectory.then.then (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:61:21)
TypeError: Cannot read property '0' of undefined
    at SingleProcessor._processOutputFile (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:160:60)
    at SingleProcessor.wrapper [as _processOutputFile] (E:\GitHub\mtg-card-analyzer\node_modules\lodash\lodash.js:4935:19)
    at SingleProcessor.generateOutput (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:77:10)
    at SingleProcessor.wrapper [as generateOutput] (E:\GitHub\mtg-card-analyzer\node_modules\lodash\lodash.js:4935:19)
    at processor.execute (E:\GitHub\mtg-card-analyzer\index.js:33:39)
    at _processCard (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:45:20)
    at CreateDirectory.then.then.then.then.catch (E:\GitHub\mtg-card-analyzer\src\processor\processor.js:72:16)
@dills122 dills122 added the bug Something isn't working label Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant