Giter VIP home page Giter VIP logo

Comments (8)

vexx32 avatar vexx32 commented on June 20, 2024

Is there a more appropriate way to illustrate the limitations of operators, do you think? 🙂

from pskoans.

Tuxhedoh avatar Tuxhedoh commented on June 20, 2024

Not really.... I know my experience with POSH. I'm not sure someone with less experience would be able to pass this test. I had to jump into the terminal and run the line and look at $error[0]. Not sure how else to see this. Maybe I am the target audience. If that's the case... than maybe it's perfectly fine.

from pskoans.

vexx32 avatar vexx32 commented on June 20, 2024

Does running the Measure-Karma command when at this test point not show the expected error message?

from pskoans.

Tuxhedoh avatar Tuxhedoh commented on June 20, 2024

from pskoans.

vexx32 avatar vexx32 commented on June 20, 2024

In this case, I think it is. 😄

It's more intended to simply illustrate that a) an error will be thrown, and b) what that error looks like, so folks can learn a little of what to look for when their code breaks in certain ways. 😁

from pskoans.

Tuxhedoh avatar Tuxhedoh commented on June 20, 2024

Of course if they just run the code, they don't even see that error message by default.
image

I answered this with System.Management.Automation.RuntimeException, because that's the actual exceptiontype (I think). Where it looks like you're expecting the Exception.Message. I don't know. Just offering feedback.

from pskoans.

vexx32 avatar vexx32 commented on June 20, 2024

I think I've already got that changed in the latest commit to use -ExpectedMessage, yeah. Actually, that's doubly a bug because there is a type called __ but not one ___ so that message would be much clearer if I had typed the dummy type name properly 😂

from pskoans.

vexx32 avatar vexx32 commented on June 20, 2024

I believe this has been addressed in the recent release(s). 😄

from pskoans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.